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.pop() not working. #2839

Closed
trustme217 opened this issue Jan 29, 2018 · 7 comments
Closed

Actions.pop() not working. #2839

trustme217 opened this issue Jan 29, 2018 · 7 comments

Comments

@trustme217
Copy link

trustme217 commented Jan 29, 2018

Actions.pop() not working for me.

in screen, I called Actions.pop() to go to prev screen.
but there is nothing.

@Blapi
Copy link
Collaborator

Blapi commented Jan 29, 2018

First, did you really have a look on the Example project??? Because Actions.pop() is very popular and is known to work.. So I'm really convinced you haven't checked how to use it.

Second, would you mind showing more of your code please in case of the Example project is not clear enough for you to understand Actions.pop()

@trustme217
Copy link
Author

trustme217 commented Jan 29, 2018

Here is my code snippet

@Blapi
Copy link
Collaborator

Blapi commented Jan 29, 2018

You are not even using Actions.pop() and still, you open an issue about it ?!

@trustme217
Copy link
Author

trustme217 commented Jan 29, 2018

in the above code, the NavigationActions.pop() = Actions.pop()
import { Actions as NavigationActions } from 'react-native-router-flux'
I can use the other functions such as Actions.focus or Actions.refresh, just can't use the pop()

@Blapi
Copy link
Collaborator

Blapi commented Jan 29, 2018

Maybe because all your scenes are in type='replace' so there is nothing to go back to in your NavigationStack?

Check the doc and the Example project before opening an issue please.

@Blapi Blapi closed this as completed Jan 29, 2018
@trustme217
Copy link
Author

trustme217 commented Jan 29, 2018

Oh, sorry, It's my mistakes.
Thanks

@Pradeep119
Copy link

somewhere you used Actions.replace then you can you Actions.replace('SceneName') with the replace

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

3 participants