chore: add scroll in modal

This commit is contained in:
2026-04-22 09:59:33 +02:00
parent efb0597c00
commit 8f617e04d1
+9 -2
View File
@@ -2,6 +2,7 @@ import React, { type ReactNode, useEffect, useRef, useMemo } from "react";
import {
Modal as RNModal,
View,
ScrollView,
TouchableOpacity,
Text,
StyleSheet,
@@ -120,7 +121,6 @@ export default function Modal({
},
body: {
paddingHorizontal: spacing.xl,
paddingBottom: spacing.xl,
},
}),
[colors],
@@ -176,7 +176,14 @@ export default function Modal({
/>
</TouchableOpacity>
</View>
<View style={styles.body}>{children}</View>
<ScrollView
style={styles.body}
contentContainerStyle={{ paddingBottom: spacing.xl }}
showsVerticalScrollIndicator={false}
keyboardShouldPersistTaps="handled"
>
{children}
</ScrollView>
</Animated.View>
</View>
</RNModal>