react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

Appearance does not export `setColorScheme`

Open nikkwong opened this issue 9 months ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the issue

The Appearance module does not export setColorScheme like the react-native counterpart.

  import { Appearance } from 'react-native'
  useEffect(() => {
    Appearance.setColorScheme(''); // throws an exception
  }, [nativeColorScheme]);

Expected behavior

It should match the API of Appearance

Steps to reproduce

Please see above.

Test case

https://codesandbox.com/null

Additional comments

No response

nikkwong avatar May 07 '24 11:05 nikkwong

I'll review a PR

necolas avatar Jun 13 '24 20:06 necolas