How to Add Support for Dark and Light Themes in React Native

Dark mode is a great way to enhance the user experience for a mobile app. Many commonly used and famous applications have support for dark mode now. iOS and Android added dark mode support to their platforms within the last year, which means that it's easier than ever to support this feature in your app.


This is a companion discussion topic for the original entry at https://blog.crowdbotics.com/how-to-add-support-for-dark-and-light-themes-in-react-native-apps/

Works very well. Tksalot…

1 Like

Great work. Just additional question.

Lets say we want implement our styling in file style.js (sibling of index.js) but we would not like to use styled components.

How to achieve the same result in that case?

The solution is GitHub - codemotionapps/react-native-dynamic: Helper APIs to work with dark mode in React Native