|
@@ -225,7 +225,7 @@ Navigation.mergeOptions(this.props.componentId, {
|
225
|
225
|
visible: false
|
226
|
226
|
},
|
227
|
227
|
layout: {
|
228
|
|
- topMargin: Navigation.constants().statusBarHeight, // Set the layout's top margin
|
|
228
|
+ topMargin: (await Navigation.constants()).statusBarHeight, // Set the layout's top margin
|
229
|
229
|
orientation: ['portrait', 'landscape'] | ['sensorLandscape'], // An array of supported orientations
|
230
|
230
|
componentBackgroundColor: 'red' // Set background color only for components, helps reduce overdraw if background color is set in default options.
|
231
|
231
|
},
|