diff --git a/native/chat/message-list-types.js b/native/chat/message-list-types.js --- a/native/chat/message-list-types.js +++ b/native/chat/message-list-types.js @@ -1,5 +1,6 @@ // @flow +import type { TabAction } from '@react-navigation/core'; import { useNavigation, useNavigationState } from '@react-navigation/native'; import invariant from 'invariant'; import * as React from 'react'; @@ -26,7 +27,7 @@ }; export type RemoveEditMode = ( - action: ChatRouterNavigationAction, + action: TabAction | ChatRouterNavigationAction, ) => 'ignore_action' | 'reduce_action'; export type MessageListContextType = { diff --git a/native/navigation/nav-selectors.js b/native/navigation/nav-selectors.js --- a/native/navigation/nav-selectors.js +++ b/native/navigation/nav-selectors.js @@ -42,7 +42,7 @@ MessageResultsScreenRouteName, MessageSearchRouteName, } from './route-names.js'; -import type { RemoveEditMode } from '../chat/message-list-types'; +import type { RemoveEditMode } from '../chat/message-list-types.js'; import { useSelector } from '../redux/redux-utils.js'; import type { NavPlusRedux } from '../types/selector-types.js';