Javascript 避免幻灯片反应本机
我被卡住了。。。我试图通过在项目中使用幻灯片来避免改变路线。当用户在我的主页上时,他可以选择进入配置页面,在该页面中,他可以找到一个按钮,该按钮调用我的主页,但我也可以滑动,我想取消此操作。您知道如何操作吗 调用配置页面//Javascript 避免幻灯片反应本机,javascript,android,ios,react-native,navigator,Javascript,Android,Ios,React Native,Navigator,我被卡住了。。。我试图通过在项目中使用幻灯片来避免改变路线。当用户在我的主页上时,他可以选择进入配置页面,在该页面中,他可以找到一个按钮,该按钮调用我的主页,但我也可以滑动,我想取消此操作。您知道如何操作吗 调用配置页面// gotoConfig() { this.state.switch_auto = false; if (this.state.appState == "active") this.props.navigator.push({ component: config
gotoConfig() {
this.state.switch_auto = false;
if (this.state.appState == "active")
this.props.navigator.push({
component: config,
passProps: {
id: '3',
name: 'page_de_config',
},
nameForButton : 'config',
})
}
及
{
if(路由组件){
返回React.createElement(route.component,
{…this.props,…route.passProps,导航器,路线,手势:{},});
}
}}
导航栏={
} />
非常感谢
<Navigator style={{flex:1}}
initialRoute={{name: 'Main', component: Main, index: 0}}
renderScene={(route, navigator) => {
if (route.component) {
return React.createElement(route.component,
{ ...this.props, ...route.passProps, navigator, route,gestures: {},} );
}
}}
navigationBar={
<Navigator.NavigationBar routeMapper={NavigationBarRouteMapper} />
} />