also do scroll insets for keyboard aware sv

This commit is contained in:
Samuel Newman
2025-06-23 16:00:36 +03:00
parent 6f2fd22fe3
commit 82cffdb018
+3 -5
View File
@@ -82,11 +82,7 @@ export const Content = memo(
ref={ref} ref={ref}
id="content" id="content"
automaticallyAdjustsScrollIndicatorInsets={false} automaticallyAdjustsScrollIndicatorInsets={false}
scrollIndicatorInsets={{ scrollIndicatorInsets={{bottom: footerHeight, top: 0, right: 1}}
bottom: footerHeight,
top: 0,
right: 1,
}}
indicatorStyle={t.scheme === 'dark' ? 'white' : 'black'} indicatorStyle={t.scheme === 'dark' ? 'white' : 'black'}
style={[scrollViewStyles.common, style]} style={[scrollViewStyles.common, style]}
contentInset={ios({top: 0, left: 0, bottom: footerHeight, right: 0})} contentInset={ios({top: 0, left: 0, bottom: footerHeight, right: 0})}
@@ -133,6 +129,8 @@ export const KeyboardAwareContent = memo(function LayoutKeyboardAwareContent({
return ( return (
<KeyboardAwareScrollView <KeyboardAwareScrollView
style={[scrollViewStyles.common, style]} style={[scrollViewStyles.common, style]}
automaticallyAdjustsScrollIndicatorInsets={false}
scrollIndicatorInsets={{bottom: footerHeight, top: 0, right: 1}}
contentInset={ios({top: 0, left: 0, bottom: footerHeight, right: 0})} contentInset={ios({top: 0, left: 0, bottom: footerHeight, right: 0})}
contentContainerStyle={[ contentContainerStyle={[
!isIOS && {paddingBottom: footerHeight}, !isIOS && {paddingBottom: footerHeight},