as per requirement I need to stop the user to go back on some of the validation, through the device back now I stopped but how can I stop when the user clicks on the status bar back icon…
plz guide me thanks…
Login screen with Login as name and options. You can navigate to LoginScreen with navigation.navigate("Login"). This screen has a header with a title and a back button handled automatically.
EDIT
Just add a headerLeft which contains a touchableopacity with an arrow left icon.
You will handle the back press on touchableopacity onpress props.
2
Answers
This is my stack, in this specific stack I need to add handle back action
Are you using un stack navigator to declare all your stack screens ?
Below, an example of a stack screen with options
Login screen with Login as name and options. You can navigate to LoginScreen with navigation.navigate("Login"). This screen has a header with a title and a back button handled automatically.
EDIT
Just add a headerLeft which contains a touchableopacity with an arrow left icon.
You will handle the back press on touchableopacity onpress props.