Theming

To enable default theme

Dark

src/scenes/splash/index.js
componentDidMount = async () => {
    await AsyncStorage.setItem("@usertheme","dark"); // dark
    this.props.setTheme("dark"); // dark
  };

Light

src/scenes/splash/index.js
componentDidMount = async () => {
    await AsyncStorage.setItem("@usertheme","light"); // light
    this.props.setTheme("light"); // light
  };

Last updated

Was this helpful?