diff --git a/screens/Feedback.tsx b/screens/Feedback.tsx index 7013467..b883698 100644 --- a/screens/Feedback.tsx +++ b/screens/Feedback.tsx @@ -22,7 +22,7 @@ export default function Feedback() { Toast.show({ type: 'error', text1: 'Validation Error', - text2: 'Please fill in all the required fields.', + text2: 'Uh-oh! It is important to complete all fields.', }); return; } diff --git a/screens/Home.tsx b/screens/Home.tsx index 2beaa24..45c820c 100644 --- a/screens/Home.tsx +++ b/screens/Home.tsx @@ -26,7 +26,7 @@ export default function Home({navigation}: {navigation: NavigationProp}) { Toast.show({ type: 'info', text1: 'Validation Error', - text2: 'Please select a difficulty level.', + text2: ' Hold on! Please select a difficulty level.', }); } }; diff --git a/screens/Share.tsx b/screens/Share.tsx index cabffd9..3e9dfeb 100644 --- a/screens/Share.tsx +++ b/screens/Share.tsx @@ -3,6 +3,7 @@ import {View, Text, TouchableOpacity, StyleSheet, Alert} from 'react-native'; import LottieView from 'lottie-react-native'; import Share from 'react-native-share'; import Animated, {StretchInX, StretchOutX} from 'react-native-reanimated'; +import Toast from 'react-native-toast-message'; const ShareApp = () => { const handleShare = async () => { @@ -14,10 +15,15 @@ const ShareApp = () => { url: 'https://dub.sh/V0csuhG', }); } catch (error) { - Alert.alert( - 'Error', - 'Unfortunately , You canceled the action: ' + (error as Error).message, - ); + // Alert.alert( + // 'Error', + // 'Unfortunately , You canceled the action: ' + (error as Error).message, + // ); + Toast.show({ + type: 'error', + text1: 'Error', + text2: 'Unfortunately, you canceled the action.', + }); } };