Skip to content

Commit

Permalink
🦺 make err msg readable
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeeshanMukhtar1 committed Nov 18, 2023
1 parent 438e5f5 commit 590366e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion screens/Feedback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion screens/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Home({navigation}: {navigation: NavigationProp<any>}) {
Toast.show({
type: 'info',
text1: 'Validation Error',
text2: 'Please select a difficulty level.',
text2: ' Hold on! Please select a difficulty level.',
});
}
};
Expand Down
14 changes: 10 additions & 4 deletions screens/Share.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -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.',
});
}
};

Expand Down

0 comments on commit 590366e

Please sign in to comment.