Page MenuHomePhorge

D15057.1765196079.diff
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

D15057.1765196079.diff

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.ElementRef<typeof View>> =
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<BaseNavigationContainerInterface>,
...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<Route: NUXTipRouteNames>(
props: Props,
-): React.ComponentType<void | NUXTipsOverlayProps<Route>> {
+): React.ComponentType<NUXTipsOverlayProps<Route>> {
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<string>([
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<Route: NUXTipRouteNames>(
- ButtonComponent: ?React.ComponentType<void | NUXTipsOverlayProps<Route>>,
+ ButtonComponent: ?React.ComponentType<NUXTipsOverlayProps<Route>>,
tipText: string,
): React.ComponentType<NUXTipsOverlayProps<Route>> {
function NUXTipsOverlay(props: NUXTipsOverlayProps<Route>) {

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 8, 12:14 PM (3 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5845339
Default Alt Text
D15057.1765196079.diff (2 KB)

Event Timeline