deskripsi:
- new component stack
This commit is contained in:
2025-07-03 14:54:05 +08:00
parent 4a92385d6d
commit 101c9053d8
7 changed files with 112 additions and 22 deletions

View File

@@ -8,7 +8,6 @@ import { useState } from "react";
import { Text, View } from "react-native";
import PhoneInput, { ICountry } from "react-native-international-phone-number";
export default function LoginView() {
const [selectedCountry, setSelectedCountry] = useState<null | ICountry>(null);
const [inputValue, setInputValue] = useState<string>("");
@@ -25,9 +24,10 @@ export default function LoginView() {
const callingCode = selectedCountry?.callingCode.replace(/^\+/, "") || "";
const fixNumber = callingCode + inputValue;
console.log(fixNumber);
// router.navigate("/(application)/profile/1");
router.navigate("/(application)/home");
const id = fixNumber.replace(/\D/g, "");
router.navigate(`/(application)/profile/${id}`);
// router.navigate("/(application)/home");
}
return (