Compare commits

...

1 Commits

Author SHA1 Message Date
IshaVenikar
7be5899ad5 Fix scrollview in pairing modal 2024-08-01 18:39:12 +05:30
2 changed files with 27 additions and 20 deletions

View File

@ -206,7 +206,7 @@ const PairingModal = ({
<> <>
{icon.endsWith('.svg') ? ( {icon.endsWith('.svg') ? (
<View style={styles.dappLogo}> <View style={styles.dappLogo}>
<Text>SvgURI requstIcon</Text> <Text>SvgURI requestIcon</Text>
</View> </View>
) : ( ) : (
<Image style={styles.dappLogo} source={{ uri: icon }} /> <Image style={styles.dappLogo} source={{ uri: icon }} />
@ -229,25 +229,27 @@ const PairingModal = ({
<Modal visible={visible} animationType="slide" transparent> <Modal visible={visible} animationType="slide" transparent>
<View style={styles.modalOuterContainer}> <View style={styles.modalOuterContainer}>
<View style={styles.modalContentContainer}> <View style={styles.modalContentContainer}>
<ScrollView showsVerticalScrollIndicator={true}> <View style={styles.container}>
{icon && (
<>
{icon.endsWith('.svg') ? (
<View style={styles.dappLogo}>
<Text>SvgURI requestIcon</Text>
</View>
) : (
<Image style={styles.dappLogo} source={{ uri: icon }} />
)}
</>
)}
<Text variant="titleMedium">{dappName}</Text>
<Text variant="bodyMedium">{url}</Text>
<View style={styles.marginVertical8} />
<Text variant="titleMedium">Connect to this site?</Text>
</View>
<ScrollView showsVerticalScrollIndicator={true} style={styles.scrollViewContainer}>
<View style={styles.container}> <View style={styles.container}>
{icon && (
<>
{icon.endsWith('.svg') ? (
<View style={styles.dappLogo}>
<Text>SvgURI requstIcon</Text>
</View>
) : (
<Image style={styles.dappLogo} source={{ uri: icon }} />
)}
</>
)}
<Text variant="titleMedium">{dappName}</Text>
<Text variant="bodyMedium">{url}</Text>
<View style={styles.marginVertical8} />
<Text variant="titleMedium">Connect to this site?</Text>
{walletConnectData.walletConnectMethods.length > 0 && ( {walletConnectData.walletConnectMethods.length > 0 && (
<View> <View>
<Text variant="titleMedium">Chains:</Text> <Text variant="titleMedium">Chains:</Text>

View File

@ -166,6 +166,7 @@ const styles = StyleSheet.create({
justifyContent: 'center', justifyContent: 'center',
marginBottom: 10, marginBottom: 10,
paddingHorizontal: 20, paddingHorizontal: 20,
minHeight: 100,
}, },
modalContentContainer: { modalContentContainer: {
display: 'flex', display: 'flex',
@ -301,7 +302,11 @@ const styles = StyleSheet.create({
networksButton: { networksButton: {
marginTop: 12, marginTop: 12,
marginBottom: 20, marginBottom: 20,
} },
scrollViewContainer: {
height: 60,
marginTop: 20,
},
}); });
export default styles; export default styles;