-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
Navigator.NavigationBar does not call the ref callback #3752
Comments
If you change https://github.com/facebook/react-native/blob/master/Libraries/CustomComponents/Navigator/Navigator.js#L1075 to use something like https://github.com/ide/react-native-clone-referenced-element it will honor the ref you pass in. |
Already made a PR. Hope the way I did it is also ok. |
@facebook-github-bot answered |
Closing this issue as @christopherdro says the question asked has been answered. Please help us by asking questions on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. |
As mentioned here, it's not possible to get a reference to the NavigationBar, as the callback is never called.
I adapted the NavBar Example in the UIExplorer here. I added a ref callback to the Navigator and the NavigationBar. The one for the Navigator is called, the one for the NavigationBar isn't.
I'm trying to hide and show the navigation bar on demand, but that is impossible without a ref to it.
The text was updated successfully, but these errors were encountered: