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 () not working on beta 28 version #2962

Closed
SandeshBG opened this issue Mar 24, 2018 · 10 comments
Closed

Actions.replace () not working on beta 28 version #2962

SandeshBG opened this issue Mar 24, 2018 · 10 comments

Comments

@SandeshBG
Copy link

  • react-native-router-flux v4.0.0-beta.28
  • react-native v0.54.2

Calling Actions.key({type:'replace',props:'props'}) or Actions.replace({sceneKey:'key',props:'props'}) is supposed to pop the current scene from the stack and pushes the new scene to the navigation stack. But it is not changing or moving to new scene. If I pass the scenekey without parameters, it's working fine. I downgraded the version to 25 which I had previously used in some other project. After downgrading it's working. So this is the issue in latest version.

@NSShentu
Copy link

sure , i find the problem , too. So, how to deal it

@NSShentu
Copy link

evaluating 'resetAction.actions.map' , undefined is not an object~~~~~

@Blapi
Copy link
Collaborator

Blapi commented Mar 27, 2018

This is a known issue, .27 is more stable

@Blapi Blapi closed this as completed Mar 27, 2018
@guanbiao33
Copy link

the same,did you fixed it?thank you

@mjstelly
Copy link

@Blapi I downgraded from .28 to .27. The app crashes at launch now. So, I don't think that's a viable solution.

@Blapi
Copy link
Collaborator

Blapi commented Apr 27, 2018

Works fine for me, are you sure it really is .27 and that you did nothing wrong in your package.json ?

@NSShentu
Copy link

NSShentu commented May 2, 2018

@Blapi i update .28 for Actions.popTo can be used normally
However .28 Actions.replace is broken
Can you give me a solution ehhhhhhhhhhhhhhhh

@Blapi
Copy link
Collaborator

Blapi commented May 2, 2018

@NSShentu can you show me your package.json when you're on .27 please? As I said, it's working fine on my app with .27

@NSShentu
Copy link

NSShentu commented May 3, 2018

@Blapi
"react": "16.0.0",
"react-native": "0.51.0",
"react-native-router-flux": "4.0.0-beta.27",
"react-navigation": "1.0.0-beta.21",

replace function is ok
when in several same page case,popTo function is broken.
whether my package.json is some wrong?

@MaxInMoon
Copy link
Contributor

Actions.replace works with 4.0.0-beta.31

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

6 participants