이 코드는 iOS 및 Android에서 다르게 작동합니다. 그 이유를 모르겠습니까? 내가 자동 완성을 만들기 위해 노력하고 제안 목록 내부 헤더 구성 요소를 렌더링 -하지만 헤더 + 내용zIndex는 반응 네이티브에서 어떻게 작동합니까?
<View style={{flex: 1}}>
<View style={{
height: 50,
backgroundColor: 'red',
left: 0,
position: 'absolute',
right: 0,
top: 0,
zIndex: 1
}}>
<Text>Header</Text>
<View style={{
backgroundColor: '#3F9',
left: 50,
position: 'absolute',
height: 100,
right: 50,
top: 25,
zIndex: 1
}}><Text>Should overlay Content</Text></View>
</View>
<View style={{flex: 1, backgroundColor: 'yellow'}} >
<Text>Content</Text>
</View>