React-native-router-flux: Actions.pop() not working.

Created on 29 Jan 2018  路  7Comments  路  Source: aksonov/react-native-router-flux

Actions.pop() not working for me.

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

Most helpful comment

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.

All 7 comments

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()

Here is my code snippet

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

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()

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.

Oh, sorry, It's my mistakes.
Thanks

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jgibbons picture jgibbons  路  3Comments

kirankalyan5 picture kirankalyan5  路  3Comments

wootwoot1234 picture wootwoot1234  路  3Comments

sarovin picture sarovin  路  3Comments

VictorK1902 picture VictorK1902  路  3Comments