ソースを参照

[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年前
コミット
c6f99f3dda
1個のファイルの変更4行の追加0行の削除
  1. 4
    0
      react/features/base/dialog/components/BottomSheet.native.js

+ 4
- 0
react/features/base/dialog/components/BottomSheet.native.js ファイルの表示

53
                 animationType = { 'slide' }
53
                 animationType = { 'slide' }
54
                 key = 'modal'
54
                 key = 'modal'
55
                 onRequestClose = { this._onCancel }
55
                 onRequestClose = { this._onCancel }
56
+                supportedOrientations = { [
57
+                    'landscape',
58
+                    'portrait'
59
+                ] }
56
                 transparent = { true }
60
                 transparent = { true }
57
                 visible = { true }>
61
                 visible = { true }>
58
                 <View style = { styles.container }>
62
                 <View style = { styles.container }>

読み込み中…
キャンセル
保存