remove root sibling parent(s??) from composer (#8897)

This commit is contained in:
Samuel Newman
2025-08-26 01:30:13 +03:00
committed by GitHub
parent 27c591f031
commit f3905c574b
-5
View File
@@ -40,7 +40,6 @@ import Animated, {
ZoomIn, ZoomIn,
ZoomOut, ZoomOut,
} from 'react-native-reanimated' } from 'react-native-reanimated'
import {RootSiblingParent} from 'react-native-root-siblings'
import {useSafeAreaInsets} from 'react-native-safe-area-context' import {useSafeAreaInsets} from 'react-native-safe-area-context'
import {type ImagePickerAsset} from 'expo-image-picker' import {type ImagePickerAsset} from 'expo-image-picker'
import { import {
@@ -663,7 +662,6 @@ export const ComposePost = ({
const isWebFooterSticky = !isNative && thread.posts.length > 1 const isWebFooterSticky = !isNative && thread.posts.length > 1
return ( return (
<BottomSheetPortalProvider> <BottomSheetPortalProvider>
<RootSiblingParent>
<KeyboardAvoidingView <KeyboardAvoidingView
testID="composePostView" testID="composePostView"
behavior={isIOS ? 'padding' : 'height'} behavior={isIOS ? 'padding' : 'height'}
@@ -673,7 +671,6 @@ export const ComposePost = ({
style={[a.flex_1, viewStyles]} style={[a.flex_1, viewStyles]}
aria-modal aria-modal
accessibilityViewIsModal> accessibilityViewIsModal>
<RootSiblingParent>
<ComposerTopBar <ComposerTopBar
canPost={canPost} canPost={canPost}
isReply={!!replyTo} isReply={!!replyTo}
@@ -732,7 +729,6 @@ export const ComposePost = ({
))} ))}
</Animated.ScrollView> </Animated.ScrollView>
{!isWebFooterSticky && footer} {!isWebFooterSticky && footer}
</RootSiblingParent>
</View> </View>
<Prompt.Basic <Prompt.Basic
@@ -744,7 +740,6 @@ export const ComposePost = ({
confirmButtonColor="negative" confirmButtonColor="negative"
/> />
</KeyboardAvoidingView> </KeyboardAvoidingView>
</RootSiblingParent>
</BottomSheetPortalProvider> </BottomSheetPortalProvider>
) )
} }