File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ This is the outter navigator for all modes. You can change these properties of `
101
101
| choosePhotoTitle | string | ChoosePhoto page title |
102
102
| maxSizeChooseAlert | (num: number) => string | Max size limit alert message when choosing photos |
103
103
| maxSizeTakeAlert | (num: number) => string | Max size limit alert message when taking photos from camera |
104
+ | supportedOrientations | string[ ] | Supported orientations. Default is landscape and portrait |
104
105
105
106
### CameraView
106
107
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export default class extends React.PureComponent {
18
18
choosePhotoTitle : 'Choose Photo' ,
19
19
maxSizeChooseAlert : ( number ) => 'You can only choose ' + number + ' photos at most' ,
20
20
maxSizeTakeAlert : ( number ) => 'You can only take ' + number + ' photos at most' ,
21
+ supportedOrientations : [ 'portrait' , 'landscape' ] ,
21
22
} ;
22
23
23
24
componentDidMount ( ) {
@@ -74,7 +75,7 @@ export default class extends React.PureComponent {
74
75
return (
75
76
< Modal
76
77
animationType = { 'slide' }
77
- supportedOrientations = { [ 'portrait' , 'landscape' ] }
78
+ supportedOrientations = { this . props . supportedOrientations }
78
79
>
79
80
< NavigationDoor />
80
81
</ Modal >
You can’t perform that action at this time.
0 commit comments