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, + }}> - +