Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33312447
D14118.1768814768.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D14118.1768814768.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 9:26 AM (5 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5955635
Default Alt Text
D14118.1768814768.diff (4 KB)
Attached To
Mode
D14118: [native] Add progressV2 field to tooltip button types
Attached
Detach File
Event Timeline
Log In to Comment