import { BoxButtonOnFooter, ButtonCenteredOnly, ButtonCustom, Grid, InformationBox, LandscapeFrameUploaded, SelectCustom, Spacing, StackCustom, TextAreaCustom, TextCustom, TextInputCustom, ViewWrapper, } from "@/components"; import { MainColor } from "@/constants/color-palet"; import dummyMasterBidangBisnis from "@/lib/dummy-data/master-bidang-bisnis"; import dummyMasterSubBidangBisnis from "@/lib/dummy-data/master-sub-bidang-bisnis"; import { Ionicons } from "@expo/vector-icons"; import { router, useLocalSearchParams } from "expo-router"; import { useState } from "react"; import { Text, TouchableOpacity, View } from "react-native"; import PhoneInput, { ICountry } from "react-native-international-phone-number"; export default function PortofolioCreate() { const { id } = useLocalSearchParams(); const [selectedCountry, setSelectedCountry] = useState(null); const [inputValue, setInputValue] = useState(""); const [data, setData] = useState({ name: "", bidang_usaha: "", sub_bidang_usaha: "", alamat: "", nomor_telepon: "", deskripsi: "", }); function handleInputValue(phoneNumber: string) { setInputValue(phoneNumber); } function handleSelectedCountry(country: ICountry) { setSelectedCountry(country); } function handleSave() { console.log("Selanjutnya"); router.replace(`/maps/create`); } const buttonSave = ( Selanjutnya ); return ( {/* Portofolio Create {id} */} ({ label: item.name, value: item.id, }))} value={data.bidang_usaha} onChange={(value) => { setData({ ...(data as any), bidang_usaha: value }); }} /> ({ label: item.name, value: item.id, }))} value={data.sub_bidang_usaha} onChange={(value) => { setData({ ...(data as any), sub_bidang_usaha: value }); }} /> console.log("delete")}> console.log("add")}> Tambah Pilihan Nomor Telepon * setData({ ...data, deskripsi: value })} autosize minRows={2} maxRows={5} required showCount maxLength={100} /> {/* Logo */} { console.log("Upload logo >>", id); router.navigate(`/(application)/(image)/take-picture/${id}`); }} > Upload {/* Social Media */} ); }