Parcourir la source

added value prop to PhoneInput

Ian Fung il y a 1 an
Parent
commit
60c2d6122e

+ 1 - 0
component/forgetPasswordMultiStepForm/formComponent/formPages/forgetPasswordPage.tsx

@@ -90,6 +90,7 @@ const ForgetPasswordPage: React.FC<ForgetPasswordPageProps> = ({
                 <View style={styles.bottomContainer}>
                     <Text style={styles.text}>驗證電話號碼後即可重置密碼</Text>
                     <PhoneInput
+                        value={forgetPasswordFormData.phone}
                         placeholder="輸入電話號碼"
                         onChangeText={(phone) =>
                             setForgetPasswordFormData({