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
- [Core] cycle import (e64a92d)
Docs
- [Docs] Mention KeyboardAvoidingView with edge to edge layout 4fdccfa