chore: add scroll in modal
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user