github jpudysz/react-native-unistyles v2.9.0
Release 2.9.0

latest releases: v2.9.2, v2.9.1
one month ago

2.9.0 (2024-07-20)

‼️ Plugins have been deprecated and will be removed in the Unistyles 3.0.

Use hairlineWidth and rtl in UnistylesRuntime and miniRuntime:

const stylesheet = createStyleSheet((theme, rt) => ({
  container: {
    backgroundColor: theme.colors.background,
    borderBottomWidth: rt.hairlineWidth, // the thinnest visible width on the platform
    justifyContent: rt.rtl ? 'flex-end' : 'flex-start' // detects if user prefers RTL or LTR direction
  }
}))

Features

  • [Core] add support for rtl (ea128f5)
  • [TypeScript] export UniStyle(View|Text|Image) types (c779713) by @yzhe554
  • [Core] implement hairlinewidth (c6913ef)

Deprecation

  • [Core] Deprecate plugins (2bddd97)

Bug Fixes

Docs

  • [Docs] Mention KeyboardAvoidingView with edge to edge layout 4fdccfa

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

NewReleases is sending notifications on new releases.