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 { import {
Modal as RNModal, Modal as RNModal,
View, View,
ScrollView,
TouchableOpacity, TouchableOpacity,
Text, Text,
StyleSheet, StyleSheet,
@@ -120,7 +121,6 @@ export default function Modal({
}, },
body: { body: {
paddingHorizontal: spacing.xl, paddingHorizontal: spacing.xl,
paddingBottom: spacing.xl,
}, },
}), }),
[colors], [colors],
@@ -176,7 +176,14 @@ export default function Modal({
/> />
</TouchableOpacity> </TouchableOpacity>
</View> </View>
<View style={styles.body}>{children}</View> <ScrollView
style={styles.body}
contentContainerStyle={{ paddingBottom: spacing.xl }}
showsVerticalScrollIndicator={false}
keyboardShouldPersistTaps="handled"
>
{children}
</ScrollView>
</Animated.View> </Animated.View>
</View> </View>
</RNModal> </RNModal>