[RN] Support landscape and portrait orientations in BottomSheet

One has to be explicit on iOS, otherwise it seems to be locked to portrait only.
This commit is contained in:
Saúl Ibarra Corretgé 2018-05-15 17:12:40 +02:00
parent 1ba564f49c
commit c6f99f3dda
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ export default class BottomSheet extends Component<Props> {
animationType = { 'slide' }
key = 'modal'
onRequestClose = { this._onCancel }
supportedOrientations = { [
'landscape',
'portrait'
] }
transparent = { true }
visible = { true }>
<View style = { styles.container }>