React-native-router-flux: How to remove view from the view stack

Created on 17 Aug 2016  Â·  3Comments  Â·  Source: aksonov/react-native-router-flux

Version

Tell us which versions you are using:

  • react-native-router-flux v3.34.0
  • react-native v0.30.0

How do I remove a view from the view stack after for instance navigating? Couldn't find it anywhere in the docs nor in the issues, so asking it here.

Most helpful comment

Try ActionConst.REPLACE as a parameter like this: Actions.someAction({type: ActionConst.REPLACE})

All 3 comments

Actions.pop()

I'm sorry but that's not what I meant. Navigating from let's say a pincode screen (only use once) to some activity screen would allow you to swipe or navigate back right now. PanHandlers={null} is a nice hack if it worked, but in 3.34 it doesn't. Removing it from the view stack would be much cleaner imo.

Get Outlook for iOS

On Wed, Aug 17, 2016 at 10:01 PM +0200, "John Brennan" [email protected] wrote:

Actions.pop()

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Try ActionConst.REPLACE as a parameter like this: Actions.someAction({type: ActionConst.REPLACE})

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tonypeng picture tonypeng  Â·  3Comments

booboothefool picture booboothefool  Â·  3Comments

luco picture luco  Â·  3Comments

wootwoot1234 picture wootwoot1234  Â·  3Comments

sreejithr picture sreejithr  Â·  3Comments