Ver código fonte

moved FAB configuration (#5873)

Moved FAB configuration from common to android since it isn't cross
platform.

Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
b_d 4 anos atrás
pai
commit
2965c7bfc1
1 arquivos alterados com 23 adições e 23 exclusões
  1. 23
    23
      docs/docs/styling.md

+ 23
- 23
docs/docs/styling.md Ver arquivo

@@ -149,28 +149,6 @@ Navigation.mergeOptions(this.props.componentId, {
149 149
       enabled: true
150 150
     }
151 151
   },
152
-  fab: {
153
-    id: 'fab',  // required
154
-    backgroundColor: 'green',
155
-    clickColor: 'blue',
156
-    rippleColor: 'yellow',
157
-    visible: true,
158
-    icon: require('add.png'),
159
-    iconColor: 'white',
160
-    alignHorizontally: 'left', // one of 'left', 'right'
161
-    hideOnScroll: false,
162
-    size: 24,
163
-    actions: [{
164
-      id: 'fab-1',  // required
165
-      backgroundColor: 'green',
166
-      clickColor: 'blue',
167
-      rippleColor: 'yellow'
168
-      visible: true,
169
-      icon: require('add.png'),
170
-      iconColor: 'white',
171
-      size: 24;
172
-    }];
173
-  },
174 152
   overlay: {
175 153
     interceptTouchOutside: true,
176 154
     handleKeyboardEvents: true
@@ -289,7 +267,29 @@ Navigation.mergeOptions(this.props.componentId, {
289 267
   },
290 268
   bottomTab: {
291 269
     selectedFontSize: 19 // Selected tab font size in sp
292
-  }
270
+  },
271
+  fab: {
272
+    id: 'fab',  // required
273
+    backgroundColor: 'green',
274
+    clickColor: 'blue',
275
+    rippleColor: 'yellow',
276
+    visible: true,
277
+    icon: require('add.png'),
278
+    iconColor: 'white',
279
+    alignHorizontally: 'left', // one of 'left', 'right'
280
+    hideOnScroll: false,
281
+    size: 24,
282
+    actions: [{
283
+      id: 'fab-1',  // required
284
+      backgroundColor: 'green',
285
+      clickColor: 'blue',
286
+      rippleColor: 'yellow',
287
+      visible: true,
288
+      icon: require('add.png'),
289
+      iconColor: 'white',
290
+      size: 24,
291
+    }]
292
+  },
293 293
 }
294 294
 ```
295 295