/** * Edit Profile页面 * @邠心vbe on 2021/05/07 */ import React, { Component, useEffect, useState } from 'react'; import { View, Text, StyleSheet, Pressable, Image, TextInput } from 'react-native'; import ImagePicker from 'react-native-image-crop-picker'; import Modal from 'react-native-modal'; import apiUpload from '../../api/apiUpload'; import apiUser from '../../api/apiUser'; import { ModalProps } from '../../components/BottomModal'; import Button, { ViewHeight } from '../../components/Button'; import { CountryDropCode, CountryDropNum, GetCountryList } from '../../components/CountryIcon'; import Dropdown from '../../components/Dropdown'; import TextView from '../../components/TextView'; import { UploadThemes } from '../../components/ThemesConfig'; import utils from '../../utils/utils'; import { DialogMaxWidth } from '../charge/InfoDialog'; import { PageList } from '../Router'; //Image Picker参数 const options = { cropping: true, multiple: false, minFiles: 1, maxFiles: 3, mediaType: 'photo', compressImageQuality: 0.8, cropperCircleOverlay: true, ...UploadThemes } //向右的箭头 const ArrowRight = () => { return ( ); } //分割线 const Divide = () => { return ( ); } //编辑弹窗 const EditDialog = ({visible, title, value, keyType, countryList, areaNo="", showCalling=false, onChangedText}) => { var changedText = value; var [callingCode, setCalling] = useState(); useEffect(() => { if (visible && areaNo) { setCalling(areaNo) } }, [visible]) return ( onChangedText('')} onBackButtonPress={() => onChangedText('')}> {title} { showCalling && { setCalling(value); }} customerItemView={ (item, index, onClick) => } /> } { changedText = text; }}/>