Skip to content

Commit

Permalink
Fix BottomTab options types
Browse files Browse the repository at this point in the history
Though icon is required on Android when declaring tabs, it's optional when calling mergeOptions to update tabs.
  • Loading branch information
guyca committed Nov 22, 2019
1 parent 002b7d8 commit d8c34c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/interfaces/Options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,9 @@ export interface OptionsBottomTab {
testID?: string;
/**
* Set the tab icon
* Note: On Android `icon` is required
*/
icon: ImageRequireSource;
icon?: ImageRequireSource;
/**
* Set the icon tint
*/
Expand Down

0 comments on commit d8c34c3

Please sign in to comment.