react-native-ui-kitten
react-native-ui-kitten copied to clipboard
Invert Layout Levels Based on Light/Dark Theme
Hi, I'm working on an app where I want <Layout level="1">
to be set to the background-basic-color-1
mapping when using dark mode, but I want it to be set to background-basic-color-4
when using light mode. (And so on...)
I cannot seem to find a way to do this using the mapping.json or theme.json as explained in the documentation.
Am I missing something? I could obviously set some kind of check on every screen but with a growing app with over 40 screens, this would be a huge pain and make my already terribly messy code even messier.
Thoughts?