1. Home
  2. Resources
  3. react-native-kanso-ui

Install

npm install --save-exact @kanso-labs/react-native-kanso-ui

Each component keeps kanso-ui’s name and props, so a Kanso page names one component for both platforms. Phones take Kanso’s comfortable density: 48px controls and 60px rows.

Themes

Tokens reach components through ThemeScope, which takes kanso-ui-core’s maps of the base, its light and dark. A product brings its colour as the same theme the web takes, built once with defineProductTheme and handed to ThemeScope’s productTheme, since react-native-kanso-ui 0.20.0. There is no productThemeStyle on phones, which have no <html> to put it on.