React Native - Modern theming
Mohamad Salman
Senior Application Developer | Cross-Platform Expert (React Native, Web) | Scalable Solutions
Good day, everyone! Today we'll talk about theme-csx, a new react native theming library that was created to alleviate the pain that developers may experience when attempting to add dark mode support to mobile apps.
Github Link: https://github.com/KJ-GM/theme-csx
Without further ado, let's get started:
Theme-csx focuses on providing an easy and simple way to add dark mode support to our mobile apps. With three simple steps, your app will be set up and ready to go!
You may wonder what makes this library special than other libraries such as styled-components, react native paper...
1) Similar to standard react native styling
2) Light & Fast
3) Expo & React Native
4) Supports React Navigation
System: changes to the phone appearance preference while the app is running will be applied dynamically. - IOS: changes will be shown immediately without the need to reopen the app.
let's go over the steps very briefly:
StyleSheet
T() Function - Themed
TV() Function - Themed Value
apperanceHook
Usage