选项卡-scene中是否可以嵌套5个场景,但在选项卡栏中仅显示4个选项卡

时间:2018-12-21 14:04:38

标签: react-native react-native-router-flux

当前,我有一个由4个选项卡组成的选项卡,由react-native-router-flux创建。我想在外部场景中放置更多场景,但不要在标签栏中显示它。

<Scene
key="tabbar"
type='replace'
tabs
tabBarStyle={{backgroundColor: '#252525'}}
activeBackgroundColor="#CEECF5"
inactiveBackgroundColor="white"
  >
   <Scene key="Start" icon={HomeIcon} >
     <Scene
       key="Dashboard"
       hideTabBar
       component={Dashboard}
       titleStyle={styles.nagivationBarTitleStyle}
       title="Start"
       rightButtonImage={SettingIcon}
       onRight={()=>{
         Actions.Settings()
       }}
       navigationBarStyle={{ backgroundColor: 'transparent'}}
       />
<Scene />
<Scene />

0 个答案:

没有答案