correct issues
This commit is contained in:
@@ -12,6 +12,7 @@ import {
|
||||
ScrollView,
|
||||
Alert,
|
||||
RefreshControl,
|
||||
ToastAndroid,
|
||||
} from "react-native";
|
||||
import { FAB } from "react-native-paper";
|
||||
import { Ionicons } from "@react-native-vector-icons/ionicons";
|
||||
@@ -176,13 +177,12 @@ export default function GroupScreen() {
|
||||
console.log("JOIN_GROUP_URL response:", res);
|
||||
|
||||
if (res.statusCode === 200) {
|
||||
Alert.alert("Success", "You requested to join the group.");
|
||||
ToastAndroid.show('You requested to join the group.', ToastAndroid.SHORT);
|
||||
} else {
|
||||
// Alert.alert("Error", res.message || "Failed to join group.");
|
||||
ToastAndroid.show(res.message || "Failed to join group.", ToastAndroid.SHORT);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error("Join Group Error:", error);
|
||||
// Alert.alert("Error", "An unexpected error occurred.");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user