Browse Source

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 years ago
parent
commit
d8c34c3910
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      lib/src/interfaces/Options.ts

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

@@ -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
    */