Преглед на файлове

Document backButton api

Guy Carmeli преди 6 години
родител
ревизия
739ec30177
променени са 1 файла, в които са добавени 5 реда и са изтрити 6 реда
  1. 5
    6
      docs/docs/styling.md

+ 5
- 6
docs/docs/styling.md Целия файл

@@ -77,9 +77,6 @@ Navigation.mergeOptions(this.props.componentId, {
77 77
     searchBar: true, // iOS 11+ native UISearchBar inside topBar
78 78
     searchBarHiddenWhenScrolling: true,
79 79
     searchBarPlaceholder: 'Search', // iOS 11+ SearchBar placeholder
80
-    component: {
81
-      name: 'example.CustomTopBar'
82
-    },
83 80
     largeTitle: {
84 81
       visible: true,
85 82
       fontSize: 30,
@@ -103,6 +100,10 @@ Navigation.mergeOptions(this.props.componentId, {
103 100
       fontFamily: 'Helvetica',
104 101
       alignment: 'center'
105 102
     },
103
+    backButton: {
104
+      icon: require('icon.png'),
105
+      visible: true
106
+    },
106 107
     background: {
107 108
       color: '#00ff00',
108 109
       component: {
@@ -173,10 +174,8 @@ Navigation.mergeOptions(this.props.componentId, {
173 174
     noBorder: false,
174 175
     blur: false,
175 176
     backButton: {
176
-      image: require('icon.png'),
177
-      visible: true,
178 177
       title: 'Back',
179
-      hideTitle: false,
178
+      showTitle: false
180 179
     },
181 180
     largeTitle: {
182 181
       visible: true,