Revert "place header on top of scrollview"

This reverts commit 3294b709faecd3760794bdcd53d3452068283db1.
This commit is contained in:
Samuel Newman
2025-05-07 10:55:12 +03:00
parent 9e900b6e36
commit 3d6f1d8bb8
+18 -19
View File
@@ -252,26 +252,25 @@ export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>(
}
return (
<>
<KeyboardAwareScrollView
contentContainerStyle={[
a.pt_2xl,
a.px_xl,
{paddingBottom},
contentContainerStyle,
]}
ref={ref}
showsVerticalScrollIndicator={isAndroid ? false : undefined}
{...props}
bounces={nativeSnapPoint === BottomSheetSnapPoint.Full}
bottomOffset={30}
scrollEventThrottle={50}
onScroll={isAndroid ? onScroll : undefined}
keyboardShouldPersistTaps="handled"
stickyHeaderIndices={header ? [0] : undefined}>
{header}
<KeyboardAwareScrollView
contentContainerStyle={[
a.pt_2xl,
a.px_xl,
{paddingBottom},
contentContainerStyle,
]}
ref={ref}
showsVerticalScrollIndicator={isAndroid ? false : undefined}
{...props}
bounces={nativeSnapPoint === BottomSheetSnapPoint.Full}
bottomOffset={30}
scrollEventThrottle={50}
onScroll={isAndroid ? onScroll : undefined}
keyboardShouldPersistTaps="handled">
{children}
</KeyboardAwareScrollView>
</>
{children}
</KeyboardAwareScrollView>
)
},
)