[0.76.3][NewArch][iOS + Android] Calling setValue on Animated.Value within useEffect breaks styling #48115
Labels
API: Animated
Needs: Triage 🔍
Platform: Android
Android applications.
Platform: iOS
iOS applications.
Description
Hey!
While working on react-native-paper new-arch support I noticed weird issue related to assigning styles dynamically. Basically, some styles are not applied if we use Animated.Value. I checked and it's not related to library itself and the issue is reproducible with bare RN app with enabled new architecture.
Looks like calling
setValue
on instance ofAnimated.Value
like in the code snippet below causes the problem:Steps to reproduce
React Native Version
0.76.3
Affected Platforms
Runtime - Android, Runtime - iOS
Output of
npx react-native info
Reproducer
https://github.com/BogiKay/rn-animated-value-issue
Screenshots and Videos
animated-value-bug.webm
The text was updated successfully, but these errors were encountered: