let native scrollview handle layout

This commit is contained in:
Hailey
2024-10-09 21:37:19 -07:00
parent 359ead3ef9
commit ad896cb8dd
6 changed files with 91 additions and 45 deletions
+5 -2
View File
@@ -3,6 +3,7 @@ import {
NativeScrollEvent,
NativeSyntheticEvent,
Pressable,
processColor,
ScrollView,
StyleProp,
TextInput,
@@ -156,11 +157,11 @@ export function Outer({
<BottomSheet
ref={ref}
cornerRadius={20}
backgroundColor={t.atoms.bg.backgroundColor}
{...nativeOptions}
onSnapPointChange={onSnapPointChange}
onStateChange={onStateChange}
disableDrag={disableDrag}>
disableDrag={disableDrag}
containerBackgroundColor={processColor(t.atoms.bg.backgroundColor)}>
<Context.Provider value={context}>
<View testID={testID}>{children}</View>
</Context.Provider>
@@ -214,6 +215,8 @@ export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>(
}
}
return children
return (
<KeyboardAwareScrollView
style={[style]}