github jpudysz/react-native-unistyles v2.9.2
Release 2.9.2

latest releases: v3.0.0-alpha.36, v3.0.0-alpha.35, v3.0.0-alpha.34...
2 months ago

2.9.2 (2024-08-30)

This is a small release that addresses some issues.

  • Thanks to @LeeMoonki, Unistyles 2.9.2 again supports React Native 0.72!
  • Unistyles will now reject transform with undefined values
<View
  style={{
    transform: [
       { scale: undefined }
    ]
  }}
/>

This used to work in the past but was changed in the React Native core. Developers can easily reproduce this issue when using, for example, media queries or breakpoints.

  • Disabling bottom inset animations

Some users reported poor performance and unnecessary re-renders when Unistyles attempted to animate the values of insets.bottom on Android (eg. when toggling keyboard).

This default behavior can now be disabled using UnistylesRegistry:

UnistylesRegistry
  .addConfig({
    disableAnimatedInsets: true // android only
 })

Features

  • [Android] - add support back for React Native 0.72 - fix JSI issue (21301cf) by @LeeMoonki
  • [Android] add option to disable animated insets (908fdd2)
  • [Core] remove undefined transforms (6d6245b)

Docs

  • Improve warning about issues with TS when registering different theme shapes (d0a76f2) by @404mat

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

NewReleases is sending notifications on new releases.