Explorar el Código

Update styling.md (#4690)

David undefined hace 5 años
padre
commit
8713d74ec2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      docs/docs/styling.md

+ 1
- 1
docs/docs/styling.md Ver fichero

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