Changelog
April 7, 2020 ยท View on GitHub
2.0.0 (on the way)
- Added
useStylesthat takes a function to generate styles as the first argument, and a dependencies array as the second argument.useStyleswill always update when the theme changes, but you may declare additional dependencies to change on.
BREAKING CHANGES
Paintno longer exists as a utility.- Old way:
Paint.create((theme) => ({...}))orPaint.create({...}) - New way:
(theme) => ({...})or() => ({...})
- Old way:
1.1.0 (latest)
contextprop onStylesProviderdeprecated in favor oftheme.Paintnow inherits all properties from StyleSheet.- Can create a
StyleSheetdirectly withPaint.sheetmethod.
1.0.0
StylesProvidertakesidandcontextprops.