Closed radko93 closed 3 years ago
Hi, thanks for working on this library. I was trying to make it work on with Reanimated 2 but I failed.
const [num, setNum] = useState(0); const text = useSharedValue(num); const animatedText = useDerivedValue(() => `Hello ${text.value}`); const animatedProps = useAnimatedProps(() => { return { text: animatedText.value, }; }); return ( <Animated.View style={[styles.container, style]}> <Touchable onPress={() => setNum(10)} rippleColor={colors.green[700]}> <ContentContainer> <ButtonIcon name="plus" /> <AnimateableText animatedProps={animatedProps} // same other props as Text component /> </ContentContainer> </Touchable> </Animated.View> );
Anything I'm missing. When pressing the touchable the text does not change.
@radko93 were you able to fix this? The onPress is not triggered for me as well
onPress
Hi, thanks for working on this library. I was trying to make it work on with Reanimated 2 but I failed.
Anything I'm missing. When pressing the touchable the text does not change.