react-native-ui-kitten icon indicating copy to clipboard operation
react-native-ui-kitten copied to clipboard

Invert Layout Levels Based on Light/Dark Theme

Open bencreynolds opened this issue 3 years ago • 0 comments

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?

bencreynolds avatar Dec 03 '21 17:12 bencreynolds