Bläddra i källkod

[RN] Support landscape and portrait orientations in BottomSheet

One has to be explicit on iOS, otherwise it seems to be locked to portrait only.
master
Saúl Ibarra Corretgé 7 år sedan
förälder
incheckning
c6f99f3dda
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4
    0
      react/features/base/dialog/components/BottomSheet.native.js

+ 4
- 0
react/features/base/dialog/components/BottomSheet.native.js Visa fil

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

Laddar…
Avbryt
Spara