bamlab / bamlab/react-native-formik

handleTextInput() throws error when not wrapped in Formik component

Open
#141 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 composing a `TextInput` component with `handleTextInput()`. I'd like to use the `useFormik()` hook to control form state, rather than a `Formik` wrapper component.

When rendering my composed component outside of a `Formik` component, the following error occurs:

![image](https://user-images.githubusercontent.com/10969405/78004767-10f57880-7397-11ea-8310-fc5af26fc78a.png)

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.