Skip to content

Commit 59d4eca

Browse files
Update index.js
[Cancel/Done] Button text is not visible while iPhone X is in landscape.
1 parent 5bb9f59 commit 59d4eca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,7 @@ class SimplePicker extends Component {
207207
};
208208

209209
return (
210-
<SafeAreaView>
211-
<Modal
210+
<Modal
212211
transparent={true}
213212
visible={modalVisible}
214213
onRequestClose={this.onPressCancel}
@@ -219,6 +218,7 @@ class SimplePicker extends Component {
219218
<View style={this.styles.overlayContainer}/>
220219
</TouchableWithoutFeedback>
221220
}
221+
<SafeAreaView>
222222
<Animated.View style={[this.styles.modalContainer, transformStyle]}>
223223
<View style={this.styles.buttonView}>
224224
<TouchableOpacity onPress={this.onPressCancel}>
@@ -243,8 +243,8 @@ class SimplePicker extends Component {
243243
</Picker>
244244
</View>
245245
</Animated.View>
246+
</SafeAreaView>
246247
</Modal>
247-
</SafeAreaView>
248248
);
249249
}
250250
}

0 commit comments

Comments
 (0)