|
|
@ -7,7 +7,6 @@ import { |
|
|
|
StatusBar, |
|
|
|
StatusBar, |
|
|
|
Platform, |
|
|
|
Platform, |
|
|
|
Dimensions, |
|
|
|
Dimensions, |
|
|
|
Appearance, |
|
|
|
|
|
|
|
KeyboardAvoidingView, |
|
|
|
KeyboardAvoidingView, |
|
|
|
TextInput, |
|
|
|
TextInput, |
|
|
|
TouchableWithoutFeedback, |
|
|
|
TouchableWithoutFeedback, |
|
|
@ -24,7 +23,6 @@ import Navbar from "../../components/Navbar"; |
|
|
|
import CustomPressable from "../../components/Pressable"; |
|
|
|
import CustomPressable from "../../components/Pressable"; |
|
|
|
import CustomTextInput from "../../components/CustomTextInput"; |
|
|
|
import CustomTextInput from "../../components/CustomTextInput"; |
|
|
|
import Select from "../../components/Select"; |
|
|
|
import Select from "../../components/Select"; |
|
|
|
import MapSelector from "../../components/MapSelector"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//style
|
|
|
|
//style
|
|
|
|
import tw from "tailwind-rn"; |
|
|
|
import tw from "tailwind-rn"; |
|
|
@ -56,12 +54,11 @@ const Address = ({ |
|
|
|
}) => { |
|
|
|
}) => { |
|
|
|
const [addressFields, setAddressFields] = useState({}); |
|
|
|
const [addressFields, setAddressFields] = useState({}); |
|
|
|
const [mapAddress, setMapAddress] = useState(null); |
|
|
|
const [mapAddress, setMapAddress] = useState(null); |
|
|
|
const colorScheme = Appearance.getColorScheme(); |
|
|
|
|
|
|
|
const navigation = useNavigation(); |
|
|
|
const navigation = useNavigation(); |
|
|
|
|
|
|
|
|
|
|
|
const profilePage = React.useMemo(() => { |
|
|
|
const profilePage = React.useMemo(() => { |
|
|
|
return route.params?.type === "profile"; |
|
|
|
return route.params?.type === "profile"; |
|
|
|
}); |
|
|
|
},[route]); |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
getProvince(); |
|
|
|
getProvince(); |
|
|
|