[BUG ] :: useAnimatedStyle reset style when screen refocus #7048
Labels
Missing info
The user didn't precise the problem enough
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
freezeOnBlur
Resets Animated View in Bottom Tab NavigatorIssue Description
When using
freezeOnBlur
with@react-navigation/bottom-tabs
, animated views reset their styles when navigating away and back. However, this issue does not occur when using@react-navigation/native-stack
.Expected Behavior
Actual Behavior
useSharedValue
retains its value, meaning the animation state is preserved, but the view itself resets.Steps to reproduce
freezeOnBlur
.Snack or a link to a repository
https://github.com/chanphiromsok/Repro-Issue
Reanimated version
3.16.7
React Native version
0.77
Platforms
iOS, Android
JavaScript runtime
Hermes
Workflow
Expo Dev Client
Architecture
Fabric (New Architecture)
Build type
Release app & dev bundle
Device
iOS simulator
Device model
Xiaomi Mi 10 Lite 5G And IOS Simulator 15Pro
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: