[fix] Modal z-index

The z-index must be applied to the outer element (or even the portal element)
if the portal is to stack relative to other silbings. Previously, the z-index
was only relative to the outer Modal element which had a non-static position.

Fix #1820
This commit is contained in:
Nicolas Gallagher
2020-12-04 11:31:46 -08:00
parent 1b2bb16fd7
commit 624b9ddec0
2 changed files with 3 additions and 3 deletions
@@ -79,7 +79,8 @@ const styles = StyleSheet.create({
top: 0,
right: 0,
bottom: 0,
left: 0
left: 0,
zIndex: 9999
},
animatedIn: {
animationDuration: `${ANIMATION_DURATION}ms`,
@@ -55,8 +55,7 @@ const styles = StyleSheet.create({
top: 0,
right: 0,
bottom: 0,
left: 0,
zIndex: 9999
left: 0
},
modalTransparent: {
backgroundColor: 'transparent'