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 ( return (
<>
{header}
<KeyboardAwareScrollView <KeyboardAwareScrollView
contentContainerStyle={[ contentContainerStyle={[
a.pt_2xl, a.pt_2xl,
@@ -266,11 +268,10 @@ export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>(
bottomOffset={30} bottomOffset={30}
scrollEventThrottle={50} scrollEventThrottle={50}
onScroll={isAndroid ? onScroll : undefined} onScroll={isAndroid ? onScroll : undefined}
keyboardShouldPersistTaps="handled" keyboardShouldPersistTaps="handled">
stickyHeaderIndices={header ? [0] : undefined}>
{header}
{children} {children}
</KeyboardAwareScrollView> </KeyboardAwareScrollView>
</>
) )
}, },
) )