We are using react-native to build an android application. We are having a screen where in there are 10 touchable opacity buttons of a numerical keypad. On press of any of the buttons of the keypad, we need to accomplish following 3 points.
- Set the button opacity to 60%.
- Change the background color to #FFFFFF during the transition period.
- The duration of transition should be 0.8 seconds.
We are able to achieve point 1 from above using the "activeOpacity" property in touchable opacity. For point 2 and point 3, we are not able to change the transition duration or change the background color during the transition. Am I missing anything? Any suggestions are appreciated.