Skip to content

Commit 5fa0ae2

Browse files
Pierre PoupinAlmouro
authored andcommitted
docs: fix Yup import in examples
1 parent fe129b5 commit 5fa0ae2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const Form = withNextInputAutoFocusForm(View);
116116
We can also create a validation schema, with `yup`. It's of course possible to use other validation possibilities provided by Formik, but `yup` makes validation and error messaging painless.
117117

118118
```javascript
119-
import Yup from 'yup';
119+
import * as Yup from 'yup';
120120

121121
const validationSchema = Yup.object().shape({
122122
email: Yup.string()
@@ -157,7 +157,7 @@ import React from 'react';
157157
import { Button, TextInput, View } from 'react-native';
158158
import { compose } from 'recompose';
159159
import { Formik } from 'formik';
160-
import Yup from 'yup';
160+
import * as Yup from 'yup';
161161
import makeInputGreatAgain, {
162162
withNextInputAutoFocusForm,
163163
withNextInputAutoFocusInput,

0 commit comments

Comments
 (0)