place header on top of scrollview

This commit is contained in:
Samuel Newman
2025-04-18 17:30:32 +03:00
parent a4b7c091bc
commit 658ff0eeec
+4 -3
View File
@@ -252,6 +252,8 @@ export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>(
}
return (
<>
{header}
<KeyboardAwareScrollView
contentContainerStyle={[
a.pt_2xl,
@@ -266,11 +268,10 @@ export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>(
bottomOffset={30}
scrollEventThrottle={50}
onScroll={isAndroid ? onScroll : undefined}
keyboardShouldPersistTaps="handled"
stickyHeaderIndices={header ? [0] : undefined}>
{header}
keyboardShouldPersistTaps="handled">
{children}
</KeyboardAwareScrollView>
</>
)
},
)