diff --git a/native/chat/chat-tab-bar.react.js b/native/chat/chat-tab-bar.react.js --- a/native/chat/chat-tab-bar.react.js +++ b/native/chat/chat-tab-bar.react.js @@ -35,7 +35,7 @@ const registerRef: React.RefSetter> = React.useCallback( element => { - const tipType = ButtonTitleToTip[props.route.name]; + const tipType = ButtonTitleToTip[(props.route.name: any)]; if (!tipType) { return; } diff --git a/native/flow-typed/npm/@react-navigation/core_v6.x.x.js b/native/flow-typed/npm/@react-navigation/core_v6.x.x.js --- a/native/flow-typed/npm/@react-navigation/core_v6.x.x.js +++ b/native/flow-typed/npm/@react-navigation/core_v6.x.x.js @@ -2294,15 +2294,14 @@ |}, |}; - declare export type NavigationContainerType = React.ComponentType< - {| + declare export type NavigationContainerType = component( + theme?: Theme, + linking?: LinkingOptions, + fallback?: React.Node, + onReady?: () => mixed, + ref: React.RefSetter, ...BaseNavigationContainerProps, - +theme?: Theme, - +linking?: LinkingOptions, - +fallback?: React.Node, - +onReady?: () => mixed, - |} - >; + ); //--------------------------------------------------------------------------- // SECTION 2: EXPORTED MODULE diff --git a/native/navigation/chat-tab-bar-button.react.js b/native/navigation/chat-tab-bar-button.react.js --- a/native/navigation/chat-tab-bar-button.react.js +++ b/native/navigation/chat-tab-bar-button.react.js @@ -39,7 +39,7 @@ function createChatTabBarButton( props: Props, -): React.ComponentType> { +): React.ComponentType> { function ChatTabBarButton(): React.Node { const { title, tabBarIcon: Icon } = props; diff --git a/native/navigation/overlay-navigator.react.js b/native/navigation/overlay-navigator.react.js --- a/native/navigation/overlay-navigator.react.js +++ b/native/navigation/overlay-navigator.react.js @@ -54,7 +54,7 @@ } from './route-names.js'; import { isMessageTooltipKey } from '../chat/utils.js'; -const newReanimatedRoutes = new Set([ +const newReanimatedRoutes = new Set([ IntroTipRouteName, CommunityDrawerTipRouteName, HomeTabTipRouteName, diff --git a/native/tooltip/nux-tips-overlay.react.js b/native/tooltip/nux-tips-overlay.react.js --- a/native/tooltip/nux-tips-overlay.react.js +++ b/native/tooltip/nux-tips-overlay.react.js @@ -108,7 +108,7 @@ const marginHorizontal: number = 10; function createNUXTipsOverlay( - ButtonComponent: ?React.ComponentType>, + ButtonComponent: ?React.ComponentType>, tipText: string, ): React.ComponentType> { function NUXTipsOverlay(props: NUXTipsOverlayProps) {