All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- added support for fontWeight sub-customization in fontSize theming (thanks @Gyeop) (#324)
- revised minimum RN version to 0.62.2 after testing, see (#308)
- added support for arbitrary viewport spacing (eg.
mx-[10vh]
) (#285) and (#287) - added support for arbitrary flex-grow/shrink syntax (eg.
grow-[7]
) (#146) and (#287)
- added Android-only text vertical align (thanks @menghany) (#284)
- when duplicate utilities, last now wins (#245) and (#279)
- resolve unusual color values from config in
tw.color()
(#273) and (#280)
See migration guide for upgrading instructions.
tw.memoBuster
property for breaking memoization, see here for more details.
- media-query off by one pixel error (#223)
- initialization of color scheme when managing color scheme manually (not listening to device changes) (see #266)
useDeviceContext()
options when opting-out of listening to device color scheme changes (see migration-guide)useAppColorScheme()
no longer allows initial value, moved touseDeviceContext()
(see migration guide and #266)- media-query minimum (see #223)
- edge case with dark-mode and color opacity shorthands (#269)
- support TS
moduleResolution: "NodeNext"
w/types
export (#263)
- update dev-only deps and config
- fix breakpoint/prefix resolution of string-based custom utilities (#259)
- handle negative z-index utilities (e.g.
-z-30
) (#258)
- export documented
style
fn (#255)
- perf: ensure cached utilities referrentially equal to prevent re-renders (#241)
- support inset
auto
utilities (e.g.top-auto
) (#237)
- chore: support leading dots in custom utilities to improve intellisense (#236)
- docs: add intellisense instructions to readme (#228)
- docs: add expo dark mode note to readme (#229)
- fix ordering/cache issue with utility prefixes (#227)
- support flex-gap, newly supported in RN 0.71 (#212)
- support flex-basis (#204)