-
-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Labels
Description
What happened?
When using Unistyles together with one of Reanimated's CSS transitions color changes don't update as expected. I've updated my repro repo from #980 with the bug.
Note: It does work if we bring in the colors using useUnistyles inside the component, but we would like to avoid that if possible to get all of Unistyles no-re-rendering sweetness 😄
<Animated.View
style={[
styles.checkbox(checked),
{
transitionProperty: ['backgroundColor'],
transitionDuration: 1000,
},
]}
/>
<Animated.View style={styles.checkbox(checked)} />| On load | Check boxes | Change theme |
|---|---|---|
![]() |
![]() |
![]() |
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2025-10-13.at.09.03.24.mov
Steps to Reproduce
- Click “Check box”. The bottom box changes color instantly (not using CSS transitions), the top one changes color over one second.
- Click “Change theme”. Only the bottom check box changes color, and the top one still has light mode color.
- Clicking “Check box” again makes the colors correct.
Snack or Repository Link (Optional)
https://github.com/believer/unistyles-repro
Unistyles Version
3.0.15
React Native Version
0.81.4
Platforms
Android, iOS
Expo
No
Additional information
- I use recommended version of
react-native-nitro-modulescompatibility table - I've searched for similar issues in this repository and found none
- I double-checked that my issue was not covered in documentation
Reactions are currently unavailable


