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
MaterialTopTabNavigator warning on 'bounces' prop of AndroidPager #5914
Comments
I am having this exact warning. |
cc @satya164 |
I see this got closed, but for me the error is not fixed. I get this error for |
Found the root of this under react-native-tab-view --> src folder --> PropTypes line 43, bounces: PropTypes.bool.isRequired I removed the .isRequired. Doesn't seem like it should be a required prop Yet to uncover what impact this has upstream in react navigation... |
this fix the issue, Thanks |
Please upgrade your |
Hi, I did, but the warning remains with react-navigation 3.11.0. Tried in both my app and my minimal example. |
try deleting your |
@satya164 Perfect the reset-cache was the trick. Thank you for the quick fix on this issue. |
@satya164 thank you, it's works. |
Current Behavior
I am running a very simple mobile application in which i am using a MaterialTopTabNavigator to navigate between 3 different screens.
When testing on iOS, the application runs without any warning. On Android, a warning is displayed in the emulator indicating :
Warning: Failed prop type: The prop 'bounces' is marked as required in 'PagerAndroid', but it's value is 'undefined'.
Here is a screenshot of the complete warning message :
Expected Behavior
Of course I would expect it to run without any warnings.
How to reproduce
Here is an example app that generates this warning :
https://github.com/ElChurros/TabNavigatorIssue.git
To reproduce the warning :
npm install
react-native run-android
Your Environment
The text was updated successfully, but these errors were encountered: