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

Usage of NON-static onEnter / onExit within component replacing componentDidMount / componentDidUnmount #2528

Closed
mariobermudezjr opened this issue Oct 22, 2017 · 2 comments

Comments

@mariobermudezjr
Copy link

Version

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

Expected behaviour

onEnter ( ) / onExit ( ) use as a non-static type.

Actual behaviour

static onEnter / onExit is functional but cannot access this.<object> within the class Component.

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

  1. Obvious bug, forking not needed.
@mariobermudezjr
Copy link
Author

mariobermudezjr commented Oct 23, 2017

Bye bye react-native-router-flux and Hello react-navigation by the react-community :D

@aksonov
Copy link
Owner

aksonov commented Oct 23, 2017

It is not supported. You can access class Component by using Actions.refs.SCENE_NAME as stated in docs.

@aksonov aksonov closed this as completed Oct 23, 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