Skip to content
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

Invariant Violation: withNavigation can only be used on a view hierarchy of a navigator. The wrapped component is unable to get access to navigation from props or context. #6

Closed
trinadhkoya opened this issue Dec 11, 2018 · 1 comment

Comments

@trinadhkoya
Copy link

trinadhkoya commented Dec 11, 2018

Not able to run this , can you look into this and close it ASAP

@gxsshallot
Copy link
Owner

If you are using it in a view not in navigator, you can import { InnerNaviBar } from 'react-native-pure-navigation-bar'. It is the component without withNavigation. And you can set leftElement={null} to disable default back button, or set onLeft={() => { do(); return false; }} to override default goback action of back button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants