github jpudysz/react-native-unistyles v2.10.0
Release 2.10.0

10 hours ago

2.10.0 (2024-10-02)

Features

  • [Core] add support for React Native 0.76 (764ae9d)
  • [Core] get theme by name (e5026b8)
UnistylesRuntime.getTheme() // <-- get current theme
UnistylesRuntime.getTheme('dark') // <-- get theme by name

Theme returned from UnsityelsRuntime will reflect all changes you made with UnistylesRuntime.updateTheme, so it's better than importing theme from file.

  • [Web] Migrate from webpack to metro, upgrade expo example to 0.75.3 (e99d65a)
  • [Android] Prevent keyboard controller to report new ime insets when listener is disabled (7f0ccc4)

This works well with following setting:

UnistylesRegistry
    .addConfig({
        disableAnimatedInsets: true
    })
  • [Android] Upgrade cmake (422293a)

Bug Fixes

  • [iOS] Set root view background color on ui thread (a3b7b0f)

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

NewReleases is sending notifications on new releases.