You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using your example code "MyPicker" no matter what I try, the Picker does not show. I'm using iOS. My code, which is essentially your example. What has changed?
importReactfrom"react";import{Button,TextInput,Text,View}from"react-native";import{Formik}from'formik'import{compose}from'recompose'importmakeInput,{handleTextInput,withNextInputAutoFocusForm,withNextInputAutoFocusInput,KeyboardModal,withPickerValues}from'react-native-formik'import{TextField}from"react-native-material-textfield";import*asYupfrom'yup'constFormikInput=compose(handleTextInput,withNextInputAutoFocusInput)(TextField)constMyPicker=compose(makeInput,withPickerValues)(TextInput)constInputsContainer=withNextInputAutoFocusForm(View)constvalidationSchema=Yup.object().shape({email: Yup.string().required().email("That's not a valid email"),password: Yup.string().required().min(3,"That's too small"),gender: Yup.string()})exportdefaultThisForm=>(<FormikonSubmit={values=>{KeyboardModal.dismiss();console.log(values)}}validationSchema={validationSchema}>{props=>{return(<InputsContainerstyle={{padding: 10}}><FormikInputlabel="email"name="email"type="email"/><FormikInputlabel="password"name="password"type="password"/><MyPickername="gender"values={[{label: 'male',value: 'M'},{label: 'female',value: 'F'}]}/><ButtononPress={props.handleSubmit}title="Submit"/>{/* <Text style={{fontSize: 20}}>{JSON.stringify(props, null, 2)}</Text> */}</InputsContainer>)}}</Formik>)
The text was updated successfully, but these errors were encountered:
I'm using your example code "MyPicker" no matter what I try, the Picker does not show. I'm using iOS. My code, which is essentially your example. What has changed?
The text was updated successfully, but these errors were encountered: