浏览代码

Fix BottomTab options types

Though icon is required on Android when declaring tabs, it's optional when calling mergeOptions to update tabs.
Guy Carmeli 5 年前
父节点
当前提交
d8c34c3910
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      lib/src/interfaces/Options.ts

+ 2
- 1
lib/src/interfaces/Options.ts 查看文件

570
   testID?: string;
570
   testID?: string;
571
   /**
571
   /**
572
    * Set the tab icon
572
    * Set the tab icon
573
+   * Note: On Android `icon` is required
573
    */
574
    */
574
-  icon: ImageRequireSource;
575
+  icon?: ImageRequireSource;
575
   /**
576
   /**
576
    * Set the icon tint
577
    * Set the icon tint
577
    */
578
    */