瀏覽代碼

Update styling.md (#4690)

David undefined 5 年之前
父節點
當前提交
8713d74ec2
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      docs/docs/styling.md

+ 1
- 1
docs/docs/styling.md 查看文件

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