File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
TinyBite/app/party/create Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import { useLocalSearchParams } from "expo-router";
1111import { StatusBar } from "expo-status-bar" ;
1212import { FlatList , ScrollView , StyleSheet , View } from "react-native" ;
1313import { SafeAreaView } from "react-native-safe-area-context" ;
14+ import Toast from "react-native-toast-message" ;
1415import { useShallow } from "zustand/shallow" ;
1516
1617const 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 ) ;
You can’t perform that action at this time.
0 commit comments