Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appearance does not export setColorScheme #2663

Open
1 task done
nikkwong opened this issue May 7, 2024 · 1 comment
Open
1 task done

Appearance does not export setColorScheme #2663

nikkwong opened this issue May 7, 2024 · 1 comment
Labels

Comments

@nikkwong
Copy link

nikkwong commented May 7, 2024

Is there an existing issue for this?

  • 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 nikkwong added the bug label May 7, 2024
@necolas
Copy link
Owner

necolas commented Jun 13, 2024

I'll review a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants