React Native: Customizing TouchableOpacity Animation Speed

7 views
0

According to the TouchableOpacity docs, there is an activeOpacity prop to change the end opacity level and there is a setOpacityTo function to animate the component to any opacity level. There doesn’t seem to be anything about changing how fast the animation should take.

How would I go about changing the animation speed? Is there a props for this? Do I need to make my own custom Animated.View?