React-native-router-flux: How to reset?

Created on 19 May 2016  路  2Comments  路  Source: aksonov/react-native-router-flux

On the README it mentions

Reset History Stack - The new reset Action for clearing the history stack and eliminates the navbar back button.

Exactly what I am looking for, but I dont know how to use the new reset action. I couldnt find any info in the documentation or examples. Can someone help?

question

Most helpful comment

Your best bet is to use type="reset" when defining scenes or when using Actions.scene() instead do Actions.scene({type: "reset"}).

I had a branch where I created a Actions.reset() but it felt like overkill vs. passing in the type.

All 2 comments

Your best bet is to use type="reset" when defining scenes or when using Actions.scene() instead do Actions.scene({type: "reset"}).

I had a branch where I created a Actions.reset() but it felt like overkill vs. passing in the type.

@cridenour that worked great, thank you!

Was this page helpful?
0 / 5 - 0 ratings