-
Notifications
You must be signed in to change notification settings - Fork 84
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
change theme don't effective #300
Comments
hi there! please have a look at #112 -- i think what you're encountering is that issue, you may need to break the memoization as described here: https://github.com/jaredh159/tailwind-react-native-classnames?tab=readme-ov-file#memo-busting |
Thanks a lot, I didn't notice that. sry😵💫 |
@jaredh159 hello,I referred to the answer in the issue and only set memoBuster in the navigator, but it still didn't work. Is it related to my nested routes? But after I try to set this attribute on both the stack route and the bottom tab, the function of switching themes is completely invalid. I really can't figure out how to solve it |
I'm not sure, you may have to set the memo buster on several components. as noted in that issue, this isn't really a solved problem yet, some people have gotten it to work with their react navigation hierarchy, others seem to not be able to. |
closing in favor of #112 |
hello,I am a newbie in react native. I have a problem and would like to ask if there is a good solution. I use the react-navigation/native library in my project. When I use toggleColorScheme or setColorScheme to change the theme in a child component, they will only change the color in the current component and will not change other components. Is there a good solution?😭
The text was updated successfully, but these errors were encountered: