I'm using this react native tinder demo -> https://github.com/brentvatne/react-native-animated-demo-tinder
有没有可能让卡片"可点击",这样它就可以在点击时导航到另一个视图?我try 过在动画视图周围包装"可touch "组件,但这样做会禁用动画.
任何 idea 都将不胜感激,谢谢!
I'm using this react native tinder demo -> https://github.com/brentvatne/react-native-animated-demo-tinder
有没有可能让卡片"可点击",这样它就可以在点击时导航到另一个视图?我try 过在动画视图周围包装"可touch "组件,但这样做会禁用动画.
任何 idea 都将不胜感激,谢谢!
我想你可以用TouchableX在Animated.View
<Animated.View>
<TouchableOpacity>
<View>
stuff
<View>
</TouchableOpacity>
</Animated.View>