Browse Source

Update styling.md (#4690)

David undefined 5 years ago
parent
commit
8713d74ec2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      docs/docs/styling.md

+ 1
- 1
docs/docs/styling.md View File

225
     visible: false
225
     visible: false
226
   },
226
   },
227
   layout: {
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
     orientation: ['portrait', 'landscape'] | ['sensorLandscape'], // An array of supported orientations
229
     orientation: ['portrait', 'landscape'] | ['sensorLandscape'], // An array of supported orientations
230
     componentBackgroundColor: 'red' // Set background color only for components, helps reduce overdraw if background color is set in default options.
230
     componentBackgroundColor: 'red' // Set background color only for components, helps reduce overdraw if background color is set in default options.
231
   },
231
   },