disable sticky header on Android

This commit is contained in:
Samuel Newman
2025-05-07 13:05:41 +03:00
parent 3d6f1d8bb8
commit 52e43fbbf1
+4 -1
View File
@@ -267,7 +267,10 @@ export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>(
scrollEventThrottle={50} scrollEventThrottle={50}
onScroll={isAndroid ? onScroll : undefined} onScroll={isAndroid ? onScroll : undefined}
keyboardShouldPersistTaps="handled" keyboardShouldPersistTaps="handled"
stickyHeaderIndices={header ? [0] : undefined}> // TODO: figure out why this positions the header absolutely (rather than stickily)
// on Android. fine to disable for now, because we don't have any
// dialogs that use this that actually scroll -sfn
stickyHeaderIndices={ios(header ? [0] : undefined)}>
{header} {header}
{children} {children}
</KeyboardAwareScrollView> </KeyboardAwareScrollView>