Skip to content

Commit 19503ab

Browse files
committed
feat/#36: 파티 생성 화면에서 올바른 URL 형식 입력 안내 토스트 메시지 추가
1 parent 5cb52cd commit 19503ab

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

TinyBite/app/party/create/[type].tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { useLocalSearchParams } from "expo-router";
1111
import { StatusBar } from "expo-status-bar";
1212
import { FlatList, ScrollView, StyleSheet, View } from "react-native";
1313
import { SafeAreaView } from "react-native-safe-area-context";
14+
import Toast from "react-native-toast-message";
1415
import { useShallow } from "zustand/shallow";
1516

1617
const PARTY_TITLES = {
@@ -90,9 +91,19 @@ export default function PartyCreateScreen() {
9091
return false;
9192
};
9293

94+
const showCorrectLinkToast = () => {
95+
Toast.show({
96+
type: "basicToast",
97+
props: { text: "올바른 URL 형식으로 입력해주세요." },
98+
position: "bottom",
99+
bottomOffset: 133,
100+
visibilityTime: 2000,
101+
});
102+
};
103+
93104
const onClickCreateParty = () => {
94105
if (productLink && !isValidLink(productLink)) {
95-
console.log("링크 올바른 형식으로 첨부하세요.");
106+
showCorrectLinkToast();
96107
return;
97108
}
98109
console.log("partyTitle: ", partyTitle);

0 commit comments

Comments
 (0)