diff --git a/types/react-native-navigation/index.d.ts b/types/react-native-navigation/index.d.ts index 5b5344a4d5..6699f5bf9f 100644 --- a/types/react-native-navigation/index.d.ts +++ b/types/react-native-navigation/index.d.ts @@ -128,7 +128,7 @@ export class Navigator { toggleDrawer(params: { side: 'left' | 'right'; animated?: boolean; to?: 'open' | 'closed' }): void; setDrawerEnabled(params: { side: 'left' | 'right'; enabled: boolean }): void; toggleTabs(params: { to: 'hidden' | 'shown'; animated?: boolean }): void; - setTabBadge(params?: { tabIndex?: number; badge?: number; badgeColor?: string; }): void; + setTabBadge(params?: { tabIndex?: number; badge: number | null; badgeColor?: string; }): void; setTabButton(params?: { tabIndex?: number; icon?: any; selectedIcon?: any; label?: string; }): void; switchToTab(params?: { tabIndex?: number }): void; toggleNavBar(params: { to: 'hidden' | 'shown'; animated?: boolean }): void; diff --git a/types/react-native-navigation/react-native-navigation-tests.tsx b/types/react-native-navigation/react-native-navigation-tests.tsx index b67aa3cfed..6feb7bc397 100644 --- a/types/react-native-navigation/react-native-navigation-tests.tsx +++ b/types/react-native-navigation/react-native-navigation-tests.tsx @@ -11,6 +11,7 @@ class Screen1 extends React.Component