Dark Mode
Dark mode in React Native enables your app to automatically adapt its color scheme based on the user's system preferences. When users toggle between light and dark themes in their device settings, your app can seamlessly switch between color palettes to provide an optimal viewing experience that matches their preference.
Key Terms
| Term | Definition |
|---|---|
useColorScheme | A React Native hook that returns the user's preferred color scheme ('light' or 'dark'). It detects the system color scheme and updates automatically when the user changes their device settings. |
| Color Scheme | The overall color theme of an app, typically either 'light' or 'dark' mode. This affects the color palette used throughout the application's UI. |
Resources
Expo Docs - Color themes