Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/108.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android React本机应用中的React导航标题重叠_Android_Ios_React Native_React Navigation - Fatal编程技术网

Android React本机应用中的React导航标题重叠

Android React本机应用中的React导航标题重叠,android,ios,react-native,react-navigation,Android,Ios,React Native,React Navigation,我在一个react原生应用程序中工作,为了我的导航,我使用了react navigation 4,在其中一个屏幕中,我想将react navigation标头与一个卡组件重叠,在android上,它工作正常,但在iOS上,我无法使它工作,即使我将卡zIndex设置为一个大数字,它总是隐藏在react navigation标头中。 以下是我的组件的代码: <View style={global.container}> <View style={st

我在一个react原生应用程序中工作,为了我的导航,我使用了react navigation 4,在其中一个屏幕中,我想将react navigation标头与一个卡组件重叠,在android上,它工作正常,但在iOS上,我无法使它工作,即使我将卡zIndex设置为一个大数字,它总是隐藏在react navigation标头中。 以下是我的组件的代码:

<View style={global.container}>
                <View style={styles.info}>
                    <View style={styles.card}>
                        <Image style={styles.image} source={app.appLogo} />
                    </View>
                </View>
<View>
在android上显示:

在iOS上显示:


请将zIndex添加到父视图。在iOS中,zIndex不适用于嵌套的parentView。您需要使parentView具有高zIndex,然后再次设置目标视图

.container {
   zIndex:101
}
.info {
   zIndex:100
}

请将zIndex添加到父视图。在iOS中,zIndex不适用于嵌套的parentView。您需要使parentView具有高zIndex,然后再次设置目标视图

.container {
   zIndex:101
}
.info {
   zIndex:100
}

谢谢,这是工作谢谢,这是工作