<commit_before># React Native Form Validation

## Overview

Simple JS component for validating forms. Works with deep nested objects.

## Components
### 1. Form
Simple View component.

#### Methods:


1. `validate`

	Validates form. Returns array of objects. Each object is for each `FormItem` in `Form`. Each object has a `isValid` property.
	If form was validated successfully - `submit` callback will be fired. 
	```
	let validatedFields = this.refs.form.validate();
	validatedFields = [
		{
			isValid: true,
			...other props
		},<commit_msg>added installation guide to README.md<commit_after># React Native Form Validation

## Overview

Simple JS component for validating forms. Works with deep nested objects.

## Installation

`npm i react-native-form-validation --save`

## Components
### 1. Form
Simple View component.

#### Methods:


1. `validate`

	Validates form. Returns array of objects. Each object is for each `FormItem` in `Form`. Each object has a `isValid` property.
	If form was validated successfully - `submit` callback will be fired. 
	```
	let validatedFields = this.refs.form.validate();
	validatedFields = [
		{
			isValid: true,
			...other props
		},
{'fraction_non_alphanumeric': 0.10508474576271186, 'fraction_numerical': 0.003389830508474576, 'mean_word_length': 3.7813765182186234, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2417202', 'n_tokens_mistral': 363, 'n_tokens_neox': 331, 'n_words': 137}