Prevent touch of previous screen in react native

Viewed 18

I am working in ReactNative project where I am using StackNavigator.

I am navigating from one functional component to another using navigation.

On the next screen I am able to touch the previous stack screen touchables i.e. button etc.

How to prevent the same?

Note: The issue seems to be in Android only.

1 Answers

You can try using navigation.push instead of navigation.navigate to unmount previous screen.

Related