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
Header error on native base web #2176
Comments
It's not a Header problem. It's +1 Same error on |
There are also other props that are passed down and generate the same warning.
The props defined by native-base that are not used by children components should be removed (as proposed by @oxyii) instead of spreading the complete |
Sometimes I like to pass down all props except the ones that throw errors. You can do it the following way without corrupting the original component's props. render() {
const props = {...this.props};
delete props.one;
delete props.two;
return (
<div props={...props} />
);
} |
@codejamninja hey bro, how did you fix this warning? |
@TerrenceFong I cloned the props and then removed the ones that gave errors. Look at my example. |
Hi @codejamninja , NativeBase v2.13.14 has been released. I did not find any such issue with |
I am getting the following error when using the Header.js component on the web.
The header displays and operates correctly. It just throws the following error in the browser console.
Here is how I am using the Header
Also, here is the theme styling I'm using for Header
The text was updated successfully, but these errors were encountered: