我想在博览会应用中禁用向后滑动。我尝试了以下方法
gestureEnabled={false} and swipeEnabled={false}
下面是我的代码,我想在其中禁用本地路线上的向后滑动:
<NavigationDrawer>
{/* <StatusBar backgroundColor={statusBarColor} /> */}
<RouterWithRedux>
<Stack key="root" hideNavBar gestureEnabled={false}>
<Scene
key="login"
component={Login}
hideNavBar
initial={!this.props.x? true : false}
/>
<Scene key="signIn" component={SignIn} />
<Scene key="register" component={Register} />
<Scene key="OtpVerification"
component={OtpVerification}
gestureEnabled={false} />
<Scene key="rootView" component={RootView} gestureEnabled={false} />
<Scene key="home" component={Home} gestureEnabled={false} swipeEnabled={false}/>
</Stack>
</RouterWithRedux>
</NavigationDrawer>