Release 3.0.0-beta.2
What a ride! π¦
Based on the initial beta release and your feedback, we had plenty of work to do! Thank you for all the reports, private messages, and Discord discussions. You are truly helping us catch all the edge cases!
The most important features and improvements:
- Thinner Babel plugin: We removed almost 50% of it!
- Build with
Android
: Now fully supported - Use
iOS
withUSE_FRAMEWORKS
: No more errors withUnistyles
:
Weβve deprecated createUnistylesComponent
in favor of withUnistyles
. This allows you to access external props and functions!
Read more: https://www.unistyl.es/v3/references/with-unistyles
ScopedTheme
:
The most requested feature since Unistyles 2.0
is here! You can now enforce a specific theme for certain screens or components.
Read more: https://www.unistyl.es/v3/references/scoped-theme
- First-class support for the
ImageBackground
component
If you used beta.1
, we recommend clearing your Metro and Android cache.
// expo
yarn expo prebuild --clean
yarn start -c
// bare RN
cd android && rm -rf .cxx build
yarn start --reset-cache
Commits
Bug Fixes
- bug report (a3dde15)
- bug report (1d7a6e0)
- bug report template (bf89d0e)
- circular dependency fail (a5e11fb)
- docs lp background color (49ca985)
- identifiers in pressables (b740ea0)
- invalid redirection paths (83df317)
- nested variants in pressables (119166c)
- no default variant is picked if user didnt pass any variant at all (2a0bdb5)
- pressable web (e327688)
- pressable web (a55653e)
- redirections (a804a53)
- typings (82b5bf9)
- withStyle types (10d231c)
- withUnistyles ref type (1e32680)
Features
- add missing components (1dedd25)
- add og tags for main page, fix seo component (247791d)
- add required dependencies (8d375e6)
- add stylesheet dependencies to native withUnistyles (98862fe)
- add support for dynamic unistyles imports (af888e2)
- add support for image background (c31cbad)
- add support for nesting scoped themes (b16c248)
- add support for scoped themes (9401105)
- add support for shadow updates (a276840)
- add support from refs passed via forwardRef (612a54c)
- adjust scoped themes in cxx (a30b6a6)
- attempt to build with use frameworks (92ee8b4)
- cleanup web (5467198)
- correctly detect dependencies in arrays (c28dd24)
- create useDependencies hook with shared logic (cac0c53)
- downgrade required node to 18 as EAS still relies on it (029264e)
- dynamic function with rt withunsityles (234aa4d)
- finish new variants (aac752b)
- finish poc (8696659)
- get rid of dynamic function arguments while linking (9cb672a)
- get rid of variants while linking node (8df0cbb)
- handle correctly styles in pressable (d0d0f30)
- improve pressables (265e510)
- improve variants (057bd9c)
- improve withUnistyles on mobile (fa51f0f)
- make android compile (7077434)
- new ci (04824e7)
- pass miini runtime to withUnityles (25acded)
- poc of components (399bc36)
- prevent traspiling components in node modules (652285b)
- remove altering ref (bb3712b)
- remove babel pressable style modifiction (cd124aa)
- remove hacks from pressable wrapper (b8e36c0)
- remove inline styles (3c2c8f2)
- remove inline styles (1052498)
- simplify pressable (97f666d)
- simplify pressable (752e87d)
- stop processing unistyle in host object (ec23a42)
- support detecting dependencies in multiple ifelse statements (5b6522b)
- swap pressable implementation even for multiple imports from react-native (1217f2d)
- test call cases, remove unsuported components (dc72388)
- upgrade nitro to 0.18.2 (0a09d02)
- web scoped themes (ac47fa0)
- withUnistyles π¦ (a7d67aa)
Full Changelog: v3.0.0-beta.1...v3.0.0-beta.2