Pārlūkot izejas kodu

Update styling.md (#4690)

David undefined 5 gadus atpakaļ
vecāks
revīzija
8713d74ec2
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      docs/docs/styling.md

+ 1
- 1
docs/docs/styling.md Parādīt failu

@@ -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
   },