Просмотр исходного кода

Update styling.md (#4954)

- Fix typo for *popOver* value of *modalPresentationStyle*. Should be *popover* (lowercase)
- *topBar.buttonColor* is not works, but *leftButtonColor* and *rightButtonColor* instead works perfect
Rustem Mussabekov 5 лет назад
Родитель
Сommit
7c43262650
1 измененных файлов: 3 добавлений и 2 удалений
  1. 3
    2
      docs/docs/styling.md

+ 3
- 2
docs/docs/styling.md Просмотреть файл

@@ -68,12 +68,13 @@ Navigation.mergeOptions(this.props.componentId, {
68 68
     backgroundColor: 'white',
69 69
     orientation: ['portrait', 'landscape'] // An array of supported orientations
70 70
   },
71
-  modalPresentationStyle: 'overCurrentContext', // Supported styles are: 'formSheet', 'pageSheet', 'overFullScreen', 'overCurrentContext', 'currentContext', 'popOver', 'fullScreen' and 'none'. On Android, only overCurrentContext and none are supported.
71
+  modalPresentationStyle: 'overCurrentContext', // Supported styles are: 'formSheet', 'pageSheet', 'overFullScreen', 'overCurrentContext', 'currentContext', 'popover', 'fullScreen' and 'none'. On Android, only overCurrentContext and none are supported.
72 72
   topBar: {
73 73
     visible: true,
74 74
     animate: false, // Controls whether TopBar visibility changes should be animated
75 75
     hideOnScroll: true,
76
-    buttonColor: 'black',
76
+    leftButtonColor: 'black',
77
+    rightButtonColor: 'black',
77 78
     drawBehind: false,
78 79
     testID: 'topBar',
79 80
     title: {