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, +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, ... }; 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, +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'; @@ -178,6 +178,7 @@ +initialCoordinates: LayoutCoordinates, +messageListVerticalBounds: VerticalBounds, +progress: Node, + +progressV2: SharedValue, +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, +progress: Node, + +progressV2: SharedValue, +isOpeningSidebar: boolean, }; @@ -473,6 +475,7 @@ const buttonProps: ButtonProps = { ...navAndRouteForFlow, progress: position, + progressV2: positionV2, isOpeningSidebar, };