Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lawnstarter/react-native-form-helpers

📝 React Native tutorials, helpers, and demo app for form validation and scroll to invalid logic
https://github.com/lawnstarter/react-native-form-helpers

demo forms react react-native validation

Last synced: 3 days ago
JSON representation

📝 React Native tutorials, helpers, and demo app for form validation and scroll to invalid logic

Awesome Lists containing this project

README

        

# react-native-form-helpers
[![npm version](https://badge.fury.io/js/react-native-form-helpers.svg)](https://badge.fury.io/js/react-native-form-helpers)

**Step 1:**

`npm install react-native-form-helpers`

**Step 2:**

Create a dictionary file ([example dictionary](demoApp/react-native-form-helpers/dictionary.js))

**Step 3:**

```js
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](demoApp/App.js) 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

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