bamlab / bamlab/react-native-formik

Picker does not appear

Open
#127 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
398
Forks
50
PR merge metrics
No merged PRs in 30d

Description

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?
```javascript
import React from "react";
import { Button, TextInput, Text, View } from "react-native";
import {Formik} from 'formik'
import {compose} from 'recompose'
import makeInput, {handleTextInput,
withNextInputAutoFocusForm,
withNextInputAutoFocusInput,
KeyboardModal,
withPickerValues
} from 'react-native-formik'
import { TextField } from "react-native-material-textfield";
import * as Yup from 'yup'

const FormikInput = compose(
handleTextInput,
withNextInputAutoFocusInput
)(TextField)

const MyPicker = compose(
makeInput,
withPickerValues
)(TextInput)

const InputsContainer = withNextInputAutoFocusForm(View)

const validationSchema = 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()
})

export default ThisForm => (
{KeyboardModal.dismiss(); console.log(values)}}
validationSchema={validationSchema}
>
{props => {
return (






{/* {JSON.stringify(props, null, 2)} */}

)
}}

)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.