diff --git a/native/chat/chat.react.js b/native/chat/chat.react.js --- a/native/chat/chat.react.js +++ b/native/chat/chat.react.js @@ -12,6 +12,7 @@ StackNavigationHelpers, ParamListBase, StackRouterOptions, + MaterialTopTabNavigationHelpers, } from '@react-navigation/core'; import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs'; import { @@ -100,6 +101,9 @@ RouteName: $Keys = $Keys, > = MaterialTopTabNavigationProp; +export type ChatTopTabsNavigationHelpers = + MaterialTopTabNavigationHelpers; + const homeChatThreadListOptions = { title: 'Focused', // eslint-disable-next-line react/display-name @@ -115,7 +119,11 @@ ), }; -const ChatThreadsTopTab = createMaterialTopTabNavigator(); +const ChatThreadsTopTab = createMaterialTopTabNavigator< + ScreenParamList, + ChatTopTabsParamList, + ChatTopTabsNavigationHelpers, +>(); function ChatThreadsComponent(): React.Node { const colors = useColors(); const { tabBarBackground, tabBarAccent } = colors;