-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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.setColorScheme not workin in RN Web #45788
Comments
|
|
Hi, It seems like this issue is actually unrelated to React Native core but related to React Native Web. Please open this issue against this other repository: https://github.com/necolas/react-native-web/issues I'll be closing this but feel free to comment if the other repo points back to us as a issue in the core of React Native. |
Thank you! Out of curiosity: Is someone checking the RN Web issues? Seems like no one is answering there since a few weeks! |
Edit: I wrote the wrong RN version. I have edited the right one! I'm currently using the newest one since I stared the project few days ago!
Description
Appearance.setColorScheme("dark") works perfectly fine for iOS and Android but raises the following Error when used for RN web even thought its written in the documentation that it works for web.
_Appearance.default.setColorScheme is not a function. (In '_Appearance.default.setColorScheme("dark")', '_Appearance.default.setColorScheme' is undefined)
Steps to reproduce
React Native Version
0.74.3
Affected Platforms
Runtime - Web
Output of
npx react-native info
Stacktrace or Logs
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: