瀏覽代碼

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,8 +570,9 @@ export interface OptionsBottomTab {
570 570
   testID?: string;
571 571
   /**
572 572
    * Set the tab icon
573
+   * Note: On Android `icon` is required
573 574
    */
574
-  icon: ImageRequireSource;
575
+  icon?: ImageRequireSource;
575 576
   /**
576 577
    * Set the icon tint
577 578
    */