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

Actions list is empty #2329

Closed
kesha-antonov opened this issue Sep 3, 2017 · 4 comments
Closed

Actions list is empty #2329

kesha-antonov opened this issue Sep 3, 2017 · 4 comments

Comments

@kesha-antonov
Copy link
Contributor

kesha-antonov commented Sep 3, 2017

Hello!

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.21
  • react-native v0.47.2

Expected behaviour

Actions.myScene should transition to that scene

Actual behaviour

throws underfined is not a function

Steps to reproduce

Could not start Example project to reproduce. It gave me native module cannot be null

I have almost same setup as in README. But in my case Actions does not have any information about my scenes. I've tried to log create and processScene in navigationState (Actions) - they never called.

What I'm missing?

@aksonov
Copy link
Owner

aksonov commented Sep 3, 2017

Please try to reproduce it with Example project. Probably you are using Actions before it is created. Try to wrap it into function, like () => Actions.myScene()

@kesha-antonov
Copy link
Contributor Author

@aksonov Thanks!

My mistake! I'm trying to migrate from v3 to v4 and I was using
Scene, Router from react-native-mobx. I guess it is not needed anymore?

@aksonov
Copy link
Owner

aksonov commented Sep 3, 2017

Yes. Just pass wrapBy={observer} to Router and you don't need to wrap your scenes manually!

@kesha-antonov
Copy link
Contributor Author

Ok! Thanks!

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