[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:
parent
1ba564f49c
commit
c6f99f3dda
|
@ -53,6 +53,10 @@ export default class BottomSheet extends Component<Props> {
|
||||||
animationType = { 'slide' }
|
animationType = { 'slide' }
|
||||||
key = 'modal'
|
key = 'modal'
|
||||||
onRequestClose = { this._onCancel }
|
onRequestClose = { this._onCancel }
|
||||||
|
supportedOrientations = { [
|
||||||
|
'landscape',
|
||||||
|
'portrait'
|
||||||
|
] }
|
||||||
transparent = { true }
|
transparent = { true }
|
||||||
visible = { true }>
|
visible = { true }>
|
||||||
<View style = { styles.container }>
|
<View style = { styles.container }>
|
||||||
|
|
Loading…
Reference in New Issue