From f3905c574bc85d17cdc53e2b57d58ccc0bdcdf4e Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 26 Aug 2025 01:30:13 +0300 Subject: remove root sibling parent(s??) from composer (#8897) --- src/view/com/composer/Composer.tsx | 157 ++++++++++++++++++------------------- 1 file changed, 76 insertions(+), 81 deletions(-) diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index c3e0526b9..d0dbdfaba 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -40,7 +40,6 @@ import Animated, { ZoomIn, ZoomOut, } from 'react-native-reanimated' -import {RootSiblingParent} from 'react-native-root-siblings' import {useSafeAreaInsets} from 'react-native-safe-area-context' import {type ImagePickerAsset} from 'expo-image-picker' import { @@ -663,88 +662,84 @@ export const ComposePost = ({ const isWebFooterSticky = !isNative && thread.posts.length > 1 return ( - - - - - 1} - publishingStage={publishingStage} - topBarAnimatedStyle={topBarAnimatedStyle} - onCancel={onPressCancel} - onPublish={onPressPublish}> - {missingAltError && } - setError('')} - clearVideo={ - erroredVideoPostId - ? () => clearVideo(erroredVideoPostId) - : () => {} - } + + + 1} + publishingStage={publishingStage} + topBarAnimatedStyle={topBarAnimatedStyle} + onCancel={onPressCancel} + onPublish={onPressPublish}> + {missingAltError && } + setError('')} + clearVideo={ + erroredVideoPostId + ? () => clearVideo(erroredVideoPostId) + : () => {} + } + /> + + + + {replyTo ? : undefined} + {thread.posts.map((post, index) => ( + + 1} + isReply={index > 0 || !!replyTo} + isActive={post.id === activePost.id} + canRemovePost={thread.posts.length > 1} + canRemoveQuote={index > 0 || !initQuote} + onSelectVideo={selectVideo} + onClearVideo={clearVideo} + onPublish={onComposerPostPublish} + onError={setError} /> - - - - {replyTo ? : undefined} - {thread.posts.map((post, index) => ( - - 1} - isReply={index > 0 || !!replyTo} - isActive={post.id === activePost.id} - canRemovePost={thread.posts.length > 1} - canRemoveQuote={index > 0 || !initQuote} - onSelectVideo={selectVideo} - onClearVideo={clearVideo} - onPublish={onComposerPostPublish} - onError={setError} - /> - {isWebFooterSticky && post.id === activePost.id && ( - {footer} - )} - - ))} - - {!isWebFooterSticky && footer} - - + {isWebFooterSticky && post.id === activePost.id && ( + {footer} + )} + + ))} + + {!isWebFooterSticky && footer} + - - - + + ) } -- cgit 1.4.1