import Spacing from "@/components/_ShareComponent/Spacing"; import ViewWrapper from "@/components/_ShareComponent/ViewWrapper"; import ButtonCustom from "@/components/Button/ButtonCustom"; import { MainColor } from "@/constants/color-palet"; import { globalStyles } from "@/constants/global-styles"; import { useRouter } from "expo-router"; import { useState } from "react"; import { Text, View } from "react-native"; import PhoneInput, { ICountry } from "react-native-international-phone-number"; export default function Login() { const router = useRouter(); const [selectedCountry, setSelectedCountry] = useState(null); const [inputValue, setInputValue] = useState(""); function handleInputValue(phoneNumber: string) { setInputValue(phoneNumber); } function handleSelectedCountry(country: ICountry) { setSelectedCountry(country); } function handleLogin() { const callingCode = selectedCountry?.callingCode.replace(/^\+/, "") || ""; const fixNumber = callingCode + inputValue; console.log(fixNumber); router.push("/verification"); } return ( WELCOME TO HIPMI BADUNG APPS powered by muku.id {/* Input dengan prefix teks */} {/* */} ); }