github jpudysz/react-native-unistyles v3.5.2
Release v3.5.2

3 hours ago

What's Changed

A patch release: ScopedTheme now reaches components that re-render or mount later, deeply nested style arrays work again, and iOS builds with use_frameworks! are fixed.

🎨 Themes and styles

  • ScopedTheme now applies to components that re-render on their own (local state, a press, a hover) or mount after the scope rendered (lists filled after setState, FlashList cells, late children). Before, they fell back to the global theme. This covers StyleSheet.create styles, useUnistyles() and useAnimatedTheme on both native and web (#1288, closes #955)
  • Styles nested deeper than three levels in a style array are fully flattened. Before, a trailing undefined at that depth could crash at mount, and styles 5+ levels deep were dropped after a theme change or a freeze/unfreeze (#1287 by @cpruijsen, closes #1285)

🛠 Build and compatibility

  • Fixed the iOS build with use_frameworks! ('react/renderer/components/text/TextProps.h' file not found), which had been failing since 3.5.0. The podspec now depends on React-FabricComponents (#1289, closes #1286)

❤️ Contributors

Thanks to everyone who sent a PR for this release:

And to those whose PRs and reports shaped the fixes:

Full Changelog: v3.5.1...v3.5.2

Don't miss a new react-native-unistyles release

NewReleases is sending notifications on new releases.