React native zIndex不';无法在ios上工作

React native zIndex不';无法在ios上工作,react-native,react-native-ios,react-native-maps,React Native,React Native Ios,React Native Maps,我的用户图标当前显示在地图标记后面,如图所示。当我在android中使用showsUserLocation={true}时,它似乎工作得很好。有没有办法将userlocation图标推到mapmarker前面?我们也已经查看了此处的选项,但仍然没有找到github.com/react-native-maps/react-native-maps/issues/1668 我尝试使用zIndex={-1},但这并没有将映射标记推到userlocation后面 { state.clubLocatio

我的用户图标当前显示在地图标记后面,如图所示。当我在android中使用showsUserLocation={true}时,它似乎工作得很好。有没有办法将userlocation图标推到mapmarker前面?我们也已经查看了此处的选项,但仍然没有找到github.com/react-native-maps/react-native-maps/issues/1668

我尝试使用zIndex={-1},但这并没有将映射标记推到userlocation后面


{
state.clubLocations.map((clubLocation)=>)
}
ClubMarker组件

const ClubMarker = styled(Marker) <{ inactive: boolean }>`
width: 40px;
height: 40px;
opacity:${props => props.inactive ? 0.25 : 1.0};
`

type ClubMarkerProps = MarkerProps & {
    coordinate : Coordinate,
    inactive: boolean
}

const ClubMarker = (props : ClubMarkerProps) => 
<ClubMarker onPress={props.onPress} coordinate={props.coordinate} inactive={ props.inactive }>
    <Icons.PinClub width=40 height=40 />
</ClubMarker>
const ClubMarker=styled(标记)`
宽度:40px;
高度:40px;
不透明度:${props=>props.inactive?0.25:1.0};
`
类型ClubMarkerProps=MarkerProps&{
坐标:坐标,
非活动:布尔值
}
常量ClubMarker=(道具:ClubMarkerProps)=>

您可以发布您的组件吗?我检查了我的地图,不管zIndex是什么,userLocation都在标记的前面。是的,我会马上更新它now@OnurEker我已经更新了代码:)
const ClubMarker = styled(Marker) <{ inactive: boolean }>`
width: 40px;
height: 40px;
opacity:${props => props.inactive ? 0.25 : 1.0};
`

type ClubMarkerProps = MarkerProps & {
    coordinate : Coordinate,
    inactive: boolean
}

const ClubMarker = (props : ClubMarkerProps) => 
<ClubMarker onPress={props.onPress} coordinate={props.coordinate} inactive={ props.inactive }>
    <Icons.PinClub width=40 height=40 />
</ClubMarker>