瀏覽代碼

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

Add docs for bottomTab requiring icon on Android
Henry 5 年之前
父節點
當前提交
16fe266de5
共有 2 個檔案被更改,包括 3 行新增1 行删除
  1. 2
    0
      docs/docs/layout-types.md
  2. 1
    1
      lib/src/interfaces/Options.ts

+ 2
- 0
docs/docs/layout-types.md 查看文件

148
 }
148
 }
149
 ```
149
 ```
150
 
150
 
151
+!> Note! On Android an `icon` is required when using `bottomTabs`.
152
+
151
 ### Selecting tabs programmatically
153
 ### Selecting tabs programmatically
152
 
154
 
153
 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.
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 查看文件

565
   /**
565
   /**
566
    * Set the tab icon
566
    * Set the tab icon
567
    */
567
    */
568
-  icon?: ImageRequireSource;
568
+  icon: ImageRequireSource;
569
   /**
569
   /**
570
    * Set the icon tint
570
    * Set the icon tint
571
    */
571
    */