React Native没有导航栏能进行跳转吗

2024-11-27 10:23:48
推荐回答(1个)
回答1:

//...
ddebugOverlay={false}
initialRoute={{ title: 'Main', id:'http'}}
configureScence={{ configureScence }}
renderScene={renderSceneAndroid}
/>
var _navigator; //全局navigator对象
//...
renderSceneAndroid: function(route, navigator){
_navigator = navigator;
if(route.id === 'http'){
return (

);
}
if(route.id === 'shop'){
return (

);
}
//...
// 调用push 跳转
_navigator.push({title:'Http',id:'http'}) } style={ styles.button }>
NetWork