Appearance Listener not working

Please provide the following:

  1. SDK Version: 35
  2. Platforms(Android/iOS/web/all):Android, iOS

Appearance.getColorScheme works perfectly, but if I change from dark mode to light mode in apple systems settings, the console log i have in this function never runs.

let subscription = Appearance.addChangeListener(({ colorScheme }) => {
    console.log('color: ', colorScheme);
    styles = colorScheme === 'light' ? stylesLight : stylesDark;
});

Forgot to wrap app in appearanceprovider - fixed now

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.