Skip to main content
Theming

Features

  1. Light / Dark / System mode
  2. Custom color schemes
  3. Dynamic theme switching
  4. Theme persistence
  5. Component theming
  6. Custom fonts
Define your colors in the Colors object.
1
Go to the constants/Colors.ts file and define your colors.
2
constants/Colors.ts
##ย Use Theme in your components. Actually, you donโ€™t need that. Because all components are working with the theme automatically. But specific case:
1
Go to your component file and use const { mode } = useTheme(); hook.
2
You can use Colors object to get colors.
3

ThemedText (click me)

You can use <ThemedText> component to change your text color according to the theme.
Finally, your app is ready to use the theming feature. Colors will change according to the theme.