Simple animations with useAnimatedStyle flicker on Fabric #6865
Labels
Platform: Android
This issue is specific to Android
Platform: iOS
This issue is specific to iOS
Repro provided
A reproduction with a snippet of code, snack or repo is provided
Description
Simple animations such as animating the
height
of a component withuseAnimatedStyles
andwithSpring
flicker on New Architecture with Fabric.Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-01-03.at.15.50.14.mp4
Steps to reproduce
const height = useSharedValue<number>(0);
const animatedStyles = useAnimatedStyle(() => ({ height: height.value }));
const onToggleHeight = () => { height.value = withSpring(height.value > 0 ? 0 : 200) };
<Animated.View style={animatedStyles} />
height: 0
in this case. I've also seen it happen when animating toopacity: 0
in other casesSnack or a link to a repository
https://github.com/thiagobrez/reanimated-repro
Reanimated version
3.16.6
React Native version
0.76.5
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Fabric (New Architecture)
Build type
Debug app & dev bundle
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: