【发布时间】:2019-09-11 05:07:19
【问题描述】:
我的 RN 应用中有一个基于 WIX React Native Navigation 的导航。 我在应用程序中有两个选项卡。在第一个“设置”屏幕中呈现在“登录”屏幕上,一旦应用程序启动。如果我只想显示“登录”并从它 onClick 导航到“设置”,如何解决?
export const goToAuth = () =>
Navigation.setRoot({
root: {
bottomTabs: {
children: [
{
stack: {
children: [
{
component: {
name: 'Login',
options: {
bottomTab: {
text: 'Tab One',
},
topBar: {
title: {
text: 'Tab One',
},
},
},
},
},
{
component: {
name: 'Settings',
options: {
topBar: {
title: {
text: 'Tab Two',
},
},
},
},
},
],
options: {
bottomTab: {
text: 'Tab 1',
},
},
},
},
{
component: {
name: 'PinCode',
options: {
bottomTab: {
text: 'Tab 2',
},
},
},
},
],
},
},
});
【问题讨论】:
标签: react-native wix-react-native-navigation