Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32221028
D15057.1765196079.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D15057.1765196079.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D15057: [Flow262][skip-ci] Fix navigation types
Attached
Detach File
Event Timeline
Log In to Comment