Releases: jpudysz/react-native-unistyles
Release 2.7.0
Release 2.6.0
2.6.0 (2024-04-13)
Unistyles brings you official tvOS support! πΊ
You can now build apps for Android and Apple TVs.
[Android]
Manage status and navigation bar colors (synchronously) with UnistylesRuntime:
UnistylesRuntime.navigationBar.setColor('#cccccc')
UnistylesRuntime.statusBar.setColor('#16a085')
// reset to defaults
UnistylesRuntime.navigationBar.setColor(undefined)
UnistylesRuntime.statusBar.setColor(undefined)Features
Release 2.5.5
Release 2.6.0-rc.1
2.6.0-rc.1 (2024-04-06)
Add support for react-native-tvos π
Works for both AppleTV and AndroidTV! πΊ
Features
Release 2.6.0-rc.0
Release 2.5.4
Release 2.5.3
Release 2.5.2
2.5.2 (2024-04-02)
Features
Android devices with a notch (cutout) could receive two initial events regarding the insets. This occurred because currentActivity was null when Unistyles was calculating insets for UnistylesRuntime. This update should resolve the issue πͺ
- mark platform extension for insets as lateinit to help reducing number of events (d68b6a5)
Release 2.5.1
2.5.1 (2024-03-27)
Features
Unistyles β€οΈ bridgeless, and I can confirm that it will work with React Native 0.74 out of the box. Just keep in mind that Bridgeless + 0.73 may not be supported, as the React Native Core team included a lot of improvements during the RC phase.
- add new arch + bridgeless example (0399493)
Bug fixes
- add support for array-based fontVariants (f85af90)
Release 2.5.0
Features
- Added library mocks for seamless test integrations with Jest and other testing frameworks. feat: add library mocks
- Introduced new documentation on testing Documentation page
- The
createStyleSheetfunction now automatically injectsruntimeas a second argument. feat: add a secondarylayoutargument increateStyleSheetby justblender
const stylesheet = createStyleSheet((theme, runtime) => ({
// Use runtime from arguments instead of importing from react-native-unistyles
}));Fixes
- Fixed an issue causing errors about duplicate plugins to be thrown while hot-reloading in development mode. [chore: stop throwing errors for duplicated plugins in dev mode PR