- 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.
Paintno longer exists as a utility.- Old way:
Paint.create((theme) => ({...}))orPaint.create({...}) - New way:
(theme) => ({...})or() => ({...})
- Old way:
contextprop onStylesProviderdeprecated in favor oftheme.Paintnow inherits all properties from StyleSheet.- Can create a
StyleSheetdirectly withPaint.sheetmethod.
StylesProvidertakesidandcontextprops.