spread
This commit is contained in:
@@ -143,14 +143,16 @@ export function Inner({children, style}: DialogInnerProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>(
|
export const ScrollableInner = React.forwardRef<ScrollView, DialogInnerProps>(
|
||||||
function ScrollableInner({children, style}, ref) {
|
function ScrollableInner({children, style, ...props}, ref) {
|
||||||
const insets = useSafeAreaInsets()
|
const insets = useSafeAreaInsets()
|
||||||
const {nativeSnapPoint} = useDialogContext()
|
const {nativeSnapPoint} = useDialogContext()
|
||||||
return (
|
return (
|
||||||
<KeyboardAwareScrollView
|
<KeyboardAwareScrollView
|
||||||
style={[a.px_xl, style]}
|
style={[a.px_xl, style]}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
|
{...props}
|
||||||
bounces={nativeSnapPoint === BottomSheetSnapPoint.Full}
|
bounces={nativeSnapPoint === BottomSheetSnapPoint.Full}
|
||||||
|
nestedScrollEnabled={true}
|
||||||
bottomOffset={30}
|
bottomOffset={30}
|
||||||
ScrollViewComponent={ScrollView}>
|
ScrollViewComponent={ScrollView}>
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
Reference in New Issue
Block a user