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.replace('Scene') does not work. #2837

Closed
davychhouk opened this issue Jan 29, 2018 · 1 comment
Closed

Actions.replace('Scene') does not work. #2837

davychhouk opened this issue Jan 29, 2018 · 1 comment

Comments

@davychhouk
Copy link

Problem
On click to navigate to new scene, whenever I use the Actions.replace('SceneName'), the action is not working and the error log is Cannot read property of 'map' of undefined in StackRouter.js of React Navigation.

My Quick Solution
For quick fix, I used Actions.pop(); Actions.push('SceneName'). And this works for me.
I just wonder why it does not work when I use the Actions.replace('SceneName').

Version

Tell us which versions you are using:

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

Expected behaviour

Reload the scene with a new scene.

Actual behaviour

simulator screen shot - iphone 6 - 2018-01-29 at 16 59 52

@Blapi
Copy link
Collaborator

Blapi commented Jan 29, 2018

Duplicate, downgrade to .27

@Blapi Blapi closed this as completed Jan 29, 2018
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