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

Call Component function from onEnter/onExit #2361

Closed
johneisenheim opened this issue Sep 9, 2017 · 1 comment
Closed

Call Component function from onEnter/onExit #2361

johneisenheim opened this issue Sep 9, 2017 · 1 comment

Comments

@johneisenheim
Copy link

johneisenheim commented Sep 9, 2017

Version

  • react-native-router-flux v4.0.0-beta.21 (v3 is not supported)
  • react-native v0.47.2

Hi there!
First of all, thanks for this awesome router.
Is there a way to call a component method in onEnter/onExit callback?
For example:

<Scene key="tab1" icon={LocationIcon} component={LocationsView} hideNavBar={true}>

Is possibile call a LocationView method from onEnter/onExit method specified in Scene or a sort of onFocus event?

Thank you!

@aksonov
Copy link
Owner

aksonov commented Sep 10, 2017

Duplicate of #2298

@aksonov aksonov marked this as a duplicate of #2298 Sep 10, 2017
@aksonov aksonov closed this as completed Sep 10, 2017
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