Page MenuHomePhabricator

D14118.id46475.diff
No OneTemporary

D14118.id46475.diff

diff --git a/native/chat/multimedia-message-tooltip-button.react.js b/native/chat/multimedia-message-tooltip-button.react.js
--- a/native/chat/multimedia-message-tooltip-button.react.js
+++ b/native/chat/multimedia-message-tooltip-button.react.js
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react';
-import Animated from 'react-native-reanimated';
+import Animated, { type SharedValue } from 'react-native-reanimated';
import { chatMessageItemHasEngagement } from 'lib/shared/chat-message-item-utils.js';
import {
@@ -32,10 +32,11 @@
+navigation: AppNavigationProp<'MultimediaMessageTooltipModal'>,
+route: TooltipRoute<'MultimediaMessageTooltipModal'>,
+progress: Node,
+ +progressV2: SharedValue<number>,
+isOpeningSidebar: boolean,
};
function MultimediaMessageTooltipButton(props: Props): React.Node {
- const { navigation, route, progress, isOpeningSidebar } = props;
+ const { navigation, route, progress, progressV2, isOpeningSidebar } = props;
const windowWidth = useSelector(state => state.dimensions.width);
@@ -52,6 +53,7 @@
initialCoordinates,
messageListVerticalBounds: verticalBounds,
progress,
+ progressV2,
targetInputBarHeight: sidebarInputBarHeight,
});
diff --git a/native/chat/robotext-message-tooltip-button.react.js b/native/chat/robotext-message-tooltip-button.react.js
--- a/native/chat/robotext-message-tooltip-button.react.js
+++ b/native/chat/robotext-message-tooltip-button.react.js
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react';
-import Animated from 'react-native-reanimated';
+import Animated, { type SharedValue } from 'react-native-reanimated';
import { chatMessageItemEngagementTargetMessageInfo } from 'lib/shared/chat-message-item-utils.js';
import {
@@ -28,10 +28,11 @@
+navigation: AppNavigationProp<'RobotextMessageTooltipModal'>,
+route: TooltipRoute<'RobotextMessageTooltipModal'>,
+progress: Node,
+ +progressV2: SharedValue<number>,
...
};
function RobotextMessageTooltipButton(props: Props): React.Node {
- const { navigation, route, progress } = props;
+ const { navigation, route, progress, progressV2 } = props;
const windowWidth = useSelector(state => state.dimensions.width);
@@ -48,6 +49,7 @@
initialCoordinates,
messageListVerticalBounds: verticalBounds,
progress,
+ progressV2,
targetInputBarHeight: sidebarInputBarHeight,
});
diff --git a/native/chat/text-message-tooltip-button.react.js b/native/chat/text-message-tooltip-button.react.js
--- a/native/chat/text-message-tooltip-button.react.js
+++ b/native/chat/text-message-tooltip-button.react.js
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react';
-import Animated from 'react-native-reanimated';
+import Animated, { type SharedValue } from 'react-native-reanimated';
import { chatMessageItemHasEngagement } from 'lib/shared/chat-message-item-utils.js';
import {
@@ -32,10 +32,11 @@
+navigation: AppNavigationProp<'TextMessageTooltipModal'>,
+route: TooltipRoute<'TextMessageTooltipModal'>,
+progress: Node,
+ +progressV2: SharedValue<number>,
+isOpeningSidebar: boolean,
};
function TextMessageTooltipButton(props: Props): React.Node {
- const { navigation, route, progress, isOpeningSidebar } = props;
+ const { navigation, route, progress, progressV2, isOpeningSidebar } = props;
const windowWidth = useSelector(state => state.dimensions.width);
@@ -56,6 +57,7 @@
initialCoordinates,
messageListVerticalBounds: verticalBounds,
progress,
+ progressV2,
targetInputBarHeight: sidebarInputBarHeight,
});
diff --git a/native/chat/utils.js b/native/chat/utils.js
--- a/native/chat/utils.js
+++ b/native/chat/utils.js
@@ -2,7 +2,7 @@
import invariant from 'invariant';
import * as React from 'react';
-import Animated from 'react-native-reanimated';
+import Animated, { type SharedValue } from 'react-native-reanimated';
import { useLoggedInUserInfo } from 'lib/hooks/account-hooks.js';
import { useThreadChatMentionCandidates } from 'lib/hooks/chat-mention-hooks.js';
@@ -179,6 +179,7 @@
+initialCoordinates: LayoutCoordinates,
+messageListVerticalBounds: VerticalBounds,
+progress: Node,
+ +progressV2: SharedValue<number>,
+targetInputBarHeight: ?number,
};
diff --git a/native/tooltip/tooltip.react.js b/native/tooltip/tooltip.react.js
--- a/native/tooltip/tooltip.react.js
+++ b/native/tooltip/tooltip.react.js
@@ -14,6 +14,7 @@
interpolate,
useAnimatedStyle,
useSharedValue,
+ type SharedValue,
} from 'react-native-reanimated';
import {
@@ -136,6 +137,7 @@
type ButtonProps<Base> = {
...Base,
+progress: Node,
+ +progressV2: SharedValue<number>,
+isOpeningSidebar: boolean,
};
@@ -468,6 +470,7 @@
const buttonProps: ButtonProps<TooltipPropsType> = {
...navAndRouteForFlow,
progress: position,
+ progressV2: positionV2,
isOpeningSidebar,
};

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 8:23 PM (34 m, 39 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2682725
Default Alt Text
D14118.id46475.diff (4 KB)

Event Timeline