From 7106ee27dd8902e464c6d5e0e10935c5f8b25e06 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 5 Mar 2026 15:22:13 +0000 Subject: [PATCH] Fix `findNodeHandle` usage on web (#10001) --- src/view/com/composer/photos/Gallery.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/view/com/composer/photos/Gallery.tsx b/src/view/com/composer/photos/Gallery.tsx index 45ce414064..118e6c2bde 100644 --- a/src/view/com/composer/photos/Gallery.tsx +++ b/src/view/com/composer/photos/Gallery.tsx @@ -23,7 +23,7 @@ import {Text} from '#/view/com/util/text/Text' import {tokens, useTheme} from '#/alf' import * as Dialog from '#/components/Dialog' import {MediaInsetBorder} from '#/components/MediaInsetBorder' -import {IS_NATIVE} from '#/env' +import {IS_IOS, IS_NATIVE} from '#/env' import {type PostAction} from '../state/composer' import {EditImageDialog} from './EditImageDialog' import {ImageAltTextDialog} from './ImageAltTextDialog' @@ -148,7 +148,8 @@ const GalleryItem = ({ const [altBtnViewTag, setAltBtnViewTag] = useState() const altBtnRef = (node: View | null) => { - if (node) { + // for iOS 26 fluid transition + if (IS_IOS && node) { const tag = findNodeHandle(node) if (tag != null) setAltBtnViewTag(tag) }