From eafce08995fa4b73616f32122b31662cb37d7204 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 28 Feb 2026 19:50:31 +0000 Subject: [PATCH] Add disableTransition prop to Menu, enable transition on Repost button - Add `disableTransition` prop to Menu.Outer that skips passing sourceViewTag when true, disabling the fluid morph transition. - Apply disableTransition to the profile menu (share, add to list, etc.) - Enable the fluid transition on the Repost button by passing sourceViewTag from a ref on the PostControlButton. https://claude.ai/code/session_011cNDhEb2cDgg5QbVuzEyH1 --- src/components/Menu/index.tsx | 6 +++++- src/components/PostControls/RepostButton.tsx | 11 ++++++++--- src/view/com/profile/ProfileMenu.tsx | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/components/Menu/index.tsx b/src/components/Menu/index.tsx index 5c39fa24e4..f51610b1f1 100644 --- a/src/components/Menu/index.tsx +++ b/src/components/Menu/index.tsx @@ -98,13 +98,17 @@ export function Trigger({ export function Outer({ children, showCancel, + disableTransition, }: React.PropsWithChildren<{ showCancel?: boolean style?: StyleProp + disableTransition?: boolean }>) { const context = useMenuContext() const {_} = useLingui() - const sourceViewTag = findNodeHandle(context.triggerRef.current) ?? undefined + const sourceViewTag = disableTransition + ? undefined + : (findNodeHandle(context.triggerRef.current) ?? undefined) return ( (null) const onPress = () => requireAuth(() => dialogControl.open()) @@ -56,6 +57,7 @@ let RepostButton = ({ return ( <> + nativeOptions={{ + preventExpansion: true, + sourceViewTag: findNodeHandle(btnRef.current) ?? undefined, + }}> - +