Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
d8c34c3910
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2
    1
      lib/src/interfaces/Options.ts

+ 2
- 1
lib/src/interfaces/Options.ts Parādīt failu

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