-
-
Notifications
You must be signed in to change notification settings - Fork 5k
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
fix: undefined colors property for material bottom tab #11219
fix: undefined colors property for material bottom tab #11219
Conversation
Hey @FN-FAL113! Thanks for opening your first pull request in this repo. If you haven't already, make sure to read our contribution guidelines. |
✅ Deploy Preview for react-navigation-example ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
This fixes issues when a developer is not using react native paper's |
It looks like this bug have been introduced in a83f6e0 |
Thanks for the PR. It'll be problematic to do use You should instead make sure that paper and react navigation's themes match: e.g. pass dark theme for react navigation if you're using dark theme for paper. https://callstack.github.io/react-native-paper/theming-with-react-navigation.html |
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
understood, but any reason why an optional chaining can't be implemented in-case a developer uses a different theme, this could prevent such exceptions being thrown that is not really informative for debugging. |
this navigator will move to |
@FN-FAL113, were you able to find in which release they expect to fix it? |
I resorted to using the paper context provider, I supplied a theme as a value |
Although I have not checked the latest version on react native paper if its fixed |
can you provide code snippet? |
@satya164, might you let us know? |
page not found... |
https://callstack.github.io/react-native-paper/docs/guides/theming |
It's as simple as applying 2 lines of code:
the docs confused me a lot. |
if you read the wrong part it will surely confused you, It did not took me that long to fix the issue once I got to read the docs |
Not sure why they include the |
I guess its for combining navigation and paper theming? since paper serves their own components with compliant material designs and not just aimed for navigation theming |
Motivation
Fixes unsafe access to an undefined property during theme change while using material bottom tab
With this the developer still gets the freedom on theming their navigations while not using react-native-paper's provider context
resolves #11208
Test plan
NavigationContainer
theme props