【问题标题】:NavigatorIOS React native translucentNavigatorIOS React原生半透明
【发布时间】:2017-03-19 13:49:57
【问题描述】:

我正在使用 NavigatorIOS 来路由我的应用程序。我想只显示没有任何标题或栏甚至半透明的后退按钮。 可能吗 ? 或者我必须使用另一个模块? 目前,我有这个:

 <NavigatorIOS
    ref='nav'
    tintColor="white"
    style={{flex: 1}}
    initialRoute={{
      title: 'Splash',
      navigationBarHidden: true,
      component: SplashScene
    }}/>

非常感谢您的帮助,

玛格特

【问题讨论】:

    标签: react-native routing react-native-ios navigator-ios


    【解决方案1】:

    你可以将 translucent prop 传递给 NavigatorIOS 的路由,像这样:

    <NavigatorIOS
        ref='nav'
        tintColor="white"
        style={{flex: 1}}
        initialRoute={{
            title: 'Splash',
            navigationBarHidden: true,
            translucent: true,
            component: SplashScene
        }}
    />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-10-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      • 2011-08-31
      • 2014-11-05
      • 2019-09-09
      相关资源
      最近更新 更多