Skip to content Skip to sidebar Skip to footer

React Native Router Not Working

I need to display the same page (Login) when the user id is incorrect. For this when i receive the error from the API I display a message and a link to go back to Login page, this

Solution 1:

popToTop() - Pop to the first scene in the stack, unmounting every other scene You can use this it will redirect you to first page you have used in your screen .

This.props.naviagtion.popToTop

Let me know if it won't work.

Post a Comment for "React Native Router Not Working"