通过反应本地导航定义全局布局?

时间:2019-03-22 11:12:14

标签: javascript reactjs react-native react-native-navigation

我想将整个导航内容包装在以下样板中:

<ScrollView showsVerticalScrollIndicator={false}>
    <View>
        <View>
            <Navbar />
        </View>
        <View style={styles.bodyWrapper}>
            // Navigation setup here
        </View>
    </View>
</ScrollView>

基本上这是我的路由设置:

Navigation.setDefaultOptions({
    topBar: {
        visible: false,
        drawBehind: true
    }
})

Navigation.registerComponent("myapp.Home", () => Home)

Navigation.setRoot({
    root: {
        stack: {
            children: [{
                component: {
                    name: 'myapp.Home'
                }
            }]
        }
    }
})

有可能实现吗?

0 个答案:

没有答案