react native 禁止手势侧滑返回

configureScene(route, routeStack){

      letconfigure=Navigator.SceneConfigs.PushFromRight;

    return {

          ...configure,

         gestures:{}//或者改成null

      };

}

        ref="navigator"

        initialRoute={{name:'Splash',component: Splash}}

        configureScene={this.configureScene.bind(this)}

        renderScene={(route,navigator) => {

        letComponent = route.component;

        return(

               

        }}

        onStartShouldSetResponder={()=>false}

/>

你可能感兴趣的:(react native 禁止手势侧滑返回)