Browse Source

Add docs for bottomTab requiring icon on Android (#5619)

Add docs for bottomTab requiring icon on Android
Henry 4 years ago
parent
commit
16fe266de5
2 changed files with 3 additions and 1 deletions
  1. 2
    0
      docs/docs/layout-types.md
  2. 1
    1
      lib/src/interfaces/Options.ts

+ 2
- 0
docs/docs/layout-types.md View File

@@ -148,6 +148,8 @@ const bottomTabs = {
148 148
 }
149 149
 ```
150 150
 
151
+!> Note! On Android an `icon` is required when using `bottomTabs`.
152
+
151 153
 ### Selecting tabs programmatically
152 154
 
153 155
 The selected index is a style property which can be updated using the `mergeOptions` command. In order to update the BottomTabs options, Pass the BottomTabs `componentId` or the `componentId` of one of its children.

+ 1
- 1
lib/src/interfaces/Options.ts View File

@@ -565,7 +565,7 @@ export interface OptionsBottomTab {
565 565
   /**
566 566
    * Set the tab icon
567 567
    */
568
-  icon?: ImageRequireSource;
568
+  icon: ImageRequireSource;
569 569
   /**
570 570
    * Set the icon tint
571 571
    */