react-native-form-helpers

0.1.0 • Public • Published

react-native-form-helpers

Step 1:
npm install react-native-form-helpers

Step 2:
Create a dictionary file (example dictionary)

Step 3:

import RNFormHelpers from "./react-native-form-helpers";
import { validationDictionary } from "./dictionary.js"; // location of your dictionary file
 
export const validationService = RNFormHelpers({
  dictionary: validationDictionary
});

Step 4:
Import into your form and utilize the built-in methods. See below tutorial or sample app for more details.

Tutorial Series:

https://medium.com/lawnstarter-engineering/how-to-create-custom-forms-with-validation-and-scroll-to-invalid-logic-in-react-native-part-one-43e5f7cdf807

https://medium.com/lawnstarter-engineering/how-to-create-custom-forms-with-validation-and-scroll-to-invalid-logic-in-react-native-part-two-9834849d4d78

// placeholder for part three

Package Sidebar

Install

npm i react-native-form-helpers

Weekly Downloads

3

Version

0.1.0

License

MIT

Unpacked Size

4.85 kB

Total Files

4

Last publish

Collaborators

  • lfkwtz
  • lawnstarterteam