-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Proper way of using onEnter / success? #2109
Comments
You can call static function onEnter of component or just pass it as prop to Scene. If it returns non-null value RNRF makes automatic transition to scene defined by |
Sorry, no access to component methods - it just accesses to your navigation state, like navBar static methods. |
So inside my component I should call:
? |
Current state params are passed to |
My main problem here is that as ReactNavigation does not unmount tabs, all the component's lifecycle methods are not called and it's impossible to perform requests in the usual place. Using the current API v4 what would you recommend as an approach (not code, I just need some guidance)?. Thanks for your time! |
I believe |
good enough. Is there a way to set the lazy prop when using TabNavigator? |
Yes, just pass lazy prop
… 26 июля 2017 г., в 12:00, Enrique Martín García ***@***.***> написал(а):
good enough. Is there a way use lazy when using TabNavigator?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Awesome. Thank you so much! |
Hi! First of all congratulations for this awesome work you have done so far, it has been very useful. I would like to know what is the correct way to use the onEnter/success props of the scene and if can I call component methods from there.
Thanks.
PD: If someone explains it properly I could maybe write a doc/example and make a pull request.
The text was updated successfully, but these errors were encountered: