[FIX] Reviwed comments on the RP

This commit is contained in:
mathysPaul
2023-11-17 13:19:39 +01:00
parent 9882fd240e
commit c91bbfd2f1
6 changed files with 28 additions and 24 deletions
+6 -6
View File
@@ -1,6 +1,6 @@
import React, { useRef } from 'react';
import { TouchableOpacity, Animated, StyleSheet, Platform } from 'react-native';
import { Column, Text, useTheme } from 'native-base';
import { Animated, StyleSheet, Platform } from 'react-native';
import { Column, Pressable, Text, useTheme } from 'native-base';
interface LinkBaseProps {
text: string;
@@ -49,13 +49,13 @@ const LinkBase: React.FC<LinkBaseProps> = ({ text, onPress }) => {
};
return (
<TouchableOpacity
<Pressable
style={styles.container}
onPress={onPress}
onPressIn={handlePressIn}
onPressOut={handlePressOut}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
onHoverIn={handleMouseEnter}
onHoverOut={handleMouseLeave}
>
<Column>
<Text>{text}</Text>
@@ -70,7 +70,7 @@ const LinkBase: React.FC<LinkBaseProps> = ({ text, onPress }) => {
]}
/>
</Column>
</TouchableOpacity>
</Pressable>
);
};