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
withundefined
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)