Unable to Type in Field

后端 未结 3 1061
执念已碎
执念已碎 2020-12-07 04:43
interface FormValues {
  friendEmail: string;
}

  const initialValues: FormValues = {
    friendEmail: \'\',
  };

export const Page: React.FunctionComponent

        
3条回答
  •  离开以前
    2020-12-07 04:45

    Formik's Field component doesn't support React native yet. Check this github issue for more details

    However you can make use of TextInput in place of field and use it with onChangeText handler

    
        {({
          handleChange,
          handleBlur,
          handleSubmit,
          isSubmitting,
          values,
        }) => (
          
            
              
                
              
            
            
              
            
          
        )}
      
    

    you can read more about Formik's usage with react-native in its documentation here

提交回复
热议问题