{"id":51679486,"url":"https://github.com/perscrew/react-native-form-validator","last_synced_at":"2026-07-15T11:05:15.153Z","repository":{"id":18545210,"uuid":"83433501","full_name":"perscrew/react-native-form-validator","owner":"perscrew","description":"React native library to validate form fields","archived":false,"fork":false,"pushed_at":"2023-01-27T04:50:27.000Z","size":2049,"stargazers_count":127,"open_issues_count":40,"forks_count":54,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-09-20T14:26:56.206Z","etag":null,"topics":["enzyme","form","npm-package","react","react-native","validation","validator"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/perscrew.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-28T13:07:12.000Z","updated_at":"2024-07-06T20:45:02.000Z","dependencies_parsed_at":"2023-02-15T05:46:35.257Z","dependency_job_id":null,"html_url":"https://github.com/perscrew/react-native-form-validator","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/perscrew/react-native-form-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perscrew%2Freact-native-form-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perscrew%2Freact-native-form-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perscrew%2Freact-native-form-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perscrew%2Freact-native-form-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perscrew","download_url":"https://codeload.github.com/perscrew/react-native-form-validator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perscrew%2Freact-native-form-validator/sbom","scorecard":{"id":728148,"data":{"date":"2025-08-11","repo":{"name":"github.com/perscrew/react-native-form-validator","commit":"ad09ce510071f5761ec8b8fe52f3e1118d266b03"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Code-Review","score":4,"reason":"Found 4/10 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/perscrew/react-native-form-validator/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/perscrew/react-native-form-validator/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/perscrew/react-native-form-validator/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"46 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-c2jc-4fpr-4vhg","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-7mhc-prgv-r3q4","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-8hfj-j24r-96c4","Warn: Project is vulnerable to: GHSA-wc69-rhjr-hc9g","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-4cpg-3vgw-4877","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-rxrc-rgv4-jpvx","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-gff7-g5r8-mg8m","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: GHSA-xc7v-wxcw-j472","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T13:30:41.793Z","repository_id":18545210,"created_at":"2025-08-22T13:30:41.793Z","updated_at":"2025-08-22T13:30:41.793Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35501701,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-15T02:00:06.706Z","response_time":131,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["enzyme","form","npm-package","react","react-native","validation","validator"],"created_at":"2026-07-15T11:05:14.211Z","updated_at":"2026-07-15T11:05:15.146Z","avatar_url":"https://github.com/perscrew.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ** ⚠️ THIS LIBRARY HAS BEEN REWRITTEN WITH TYPESCRIPT AND HAS MOVED TO [https://github.com/perscrew/react-simple-form-validator](https://github.com/perscrew/react-simple-form-validator) ⚠️ **\n\n# React native form validator\n[![Node.js CI](https://github.com/perscrew/react-native-form-validator/actions/workflows/ci.yml/badge.svg)](https://github.com/perscrew/react-native-form-validator/actions/workflows/ci.yml)\n[![Npm package version](https://badgen.net/npm/v/react-native-form-validator)](https://www.npmjs.com/package/react-native-form-validator)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)\n[![made-with-javascript](https://img.shields.io/badge/Made%20with-JavaScript-1f425f.svg)](https://www.javascript.com)\n\nReact native form validator is a simple library to validate your form fields with React Native.\nThe library is easy to use. You just have to extend the \"ValidationComponent\" class on your desired React native form component.\n\n## 1. Installation\n* Run npm install 'react-native-form-validator' to fetch the library :\n```sh\nnpm install 'react-native-form-validator' --save\n```\n\n## 2. Use it in your app\n### For class component:\n\n\nExtend \"ValidationComponent\" class on a form component :\n```js\nimport React from 'react';\nimport ValidationComponent from 'react-native-form-validator';\n\nexport default class MyForm extends ValidationComponent {\n  ...\n}\n```\nThe ValidationComponent extends the React.Component class.\n\nTo ensure form validation you have to call the \"this.validate\" method in a custom function.\n```js\nconstructor(props) {\n  super(props);\n  this.state = {name : \"My name\", email: \"titi@gmail.com\", number:\"56\", date: \"2017-03-01\"};\n}\n\n_onSubmit() {\n  // Call ValidationComponent validate method\n  this.validate({\n    name: {minlength:3, maxlength:7, required: true},\n    email: {email: true},\n    number: {numbers: true},\n    date: {date: 'YYYY-MM-DD'}\n  });\n}\n```\nThe method arguments should be a representation of the React component state. The first graph level matches with the React state variables.\nThe second level matches with the existing validation rules.\n\nYou will find bellow the default rules available in the library [defaultRules.js](./defaultRules.js) :\n\n|Rule|Benefits|\n|-------|--------|\n|numbers|Check if a state variable is a number.|\n|email|Check if a state variable is an email.|\n|required|Check if a state variable is not empty.|\n|date|Check if a state variable respects the date pattern. Ex: date: 'YYYY-MM-DD'|\n|minlength|Check if a state variable is greater than minlength.|\n|maxlength|Check if a state variable is lower than maxlength.|\n|equalPassword|Check if a state variable is equal to another value (useful for password confirm).|\n|hasNumber|Check if a state variable contains a number.|\n|hasUpperCase|Check if a state variable contains a upper case letter.|\n|hasLowerCase|Check if a state variable contains a lower case letter.|\n|hasSpecialCharacter|Check if a state variable contains a special character.|\n\nYou can also override this file via the component React props :\n```js\nconst rules = {any: /^(.*)$/};\n\n\u003cFormTest rules={rules} /\u003e\n```\n\n\nOnce you have extended the class a set of useful methods become avaiblable :\n\n|Method|Output|Benefits|\n|-------|--------|--------|\n|this.validate(state_rules)|Boolean|This method ensures form validation within the object passed in argument.The object should be a representation of the React component state. The first graph level matches with the React state variables.The second level matches with the existing validation rules.|\n|this.isFormValid()|Boolean|This method indicates if the form is valid and if there are no errors.|\n|this.isFieldInError(fieldName)|Boolean|This method indicates if a specific field has an error. The field name will match with your React state|\n|this.getErrorMessages(separator)|String|This method returns the different error messages bound to your React state. The argument is optional, by default the separator is a \\n. Under the hood a join method is used.|\n|this.getErrorsInField(fieldName)|Array|This method returns the error messages bound to the specified field. The field name will match with your React state. It returns an empty array if no error was bound to the field.|\n\nThe library also contains a [defaultMessages.js](./defaultMessages.js) file which includes the errors label for a language locale.\nYou can override this file via the component React props :\n```js\nconst messages = {\n  en: {numbers: \"error on numbers !\"},\n  fr: {numbers: \"erreur sur les nombres !\"}\n};\n\n\u003cFormTest messages={messages} /\u003e\n```\nYou can add custom labels to the state variables, which will be useful if you want to change it's label in the error messages or translate it\n to the local language :\n```js\nconst labels = {\n  name: 'Name',\n  email: 'E-mail',\n  number: 'Phone number'\n};\n\n\u003cFormTest labels={labels} /\u003e\n```\n\nYou can also specify the default custom local language in the props :\n\n```js\n\u003cFormTest deviceLocale=\"fr\" /\u003e\n```\n### Dynamic validation onChangeText \nYou can also use dynamic validation by calling validate function on onChangeText event :\n\n```js\n\u003cInput ref=\"lastName\" placeholder={ApiUtils.translate('profile.lastname') + ' *'} \n                onChangeText={(lastName) =\u003e {\n                  this.setState({ lastName }, () =\u003e {\n                    this.validate({\n                      lastName: { required: true },\n                    })\n                  })\n                }} value={this.state.lastName} style={[styles.input]} /\u003e\n{this.isFieldInError('lastName') \u0026\u0026 this.getErrorsInField('lastName').map(errorMessage =\u003e \u003cText style={styles.error}\u003e{errorMessage}\u003c/Text\u003e)}\n```\n\n### For functional component:\n\nYou will use useValidation hook inside your component like this :\n\n```js\nimport { useValidation } from 'react-native-form-validator';\nimport customValidationMessages from './customValidationMessages';\n\nconst MyFunction = () =\u003e {\n  const [email, setEmail] = useState('');\n  const [name, setName] = useState('');\n  \n  const { validate, getErrorsInField } = useValidation({\n    state: { email, name },\n    messages: customValidationMessages,\n  });\n  \n  const _validateForm = () =\u003e {\n    validate({\n      email: { email: true },\n      name: { required: true }\n    })\n  }\n}\n```\nYou need to pass the state manually to the useValidation hook in state object like above.\nYou can also pass custom messages, labels, rules, deviceLocale and it returns object with all the methods that available in the class component.\n\n\n## 3. Complete example\n\n### Class component:\n\nYou can find a complete example in the [formTest.js](./test/formTest.js) file :\n\n```js\n'use strict';\n\nimport React, {Component}  from 'react';\nimport {View, Text, TextInput, TouchableHighlight} from 'react-native';\nimport ValidationComponent from '../index';\n\nexport default class FormTest extends ValidationComponent {\n\n  constructor(props) {\n    super(props);\n    this.state = {name : \"My name\", email: \"tibtib@gmail.com\", number:\"56\", date: \"2017-03-01\", newPassword : \"\", confirmPassword : \"\"};\n  }\n\n  _onPressButton() {\n    // Call ValidationComponent validate method\n    this.validate({\n      name: {minlength:3, maxlength:7, required: true},\n      email: {email: true},\n      number: {numbers: true},\n      date: {date: 'YYYY-MM-DD'},\n      confirmPassword : {equalPassword : this.state.newPassword}\n    });\n  }\n\n  render() {\n      return (\n        \u003cView\u003e\n          \u003cTextInput ref=\"name\" onChangeText={(name) =\u003e this.setState({name})} value={this.state.name} /\u003e\n          \u003cTextInput ref=\"email\" onChangeText={(email) =\u003e this.setState({email})} value={this.state.email} /\u003e\n          \u003cTextInput ref=\"number\" onChangeText={(number) =\u003e this.setState({number})} value={this.state.number} /\u003e\n          \u003cTextInput ref=\"date\" onChangeText={(date) =\u003e this.setState({date})} value={this.state.date} /\u003e\n          {this.isFieldInError('date') \u0026\u0026 this.getErrorsInField('date').map(errorMessage =\u003e \u003cText\u003e{errorMessage}\u003c/Text\u003e) }\n\n          \u003cTextInput ref=\"newPassword\" onChangeText={(newPassword) =\u003e this.setState({newPassword})} value={this.state.newPassword}  secureTextEntry={true}/\u003e\n          \u003cTextInput ref=\"confirmPassword\" onChangeText={(confirmPassword) =\u003e this.setState({confirmPassword})} value={this.state.confirmPassword} secureTextEntry={true} /\u003e\n          {this.isFieldInError('confirmPassword') \u0026\u0026 this.getErrorsInField('confirmPassword').map(errorMessage =\u003e \u003cText\u003e{errorMessage}\u003c/Text\u003e) }\n\n          \u003cTouchableHighlight onPress={this._onPressButton}\u003e\n            \u003cText\u003eSubmit\u003c/Text\u003e\n          \u003c/TouchableHighlight\u003e\n\n          \u003cText\u003e\n            {this.getErrorMessages()}\n          \u003c/Text\u003e\n        \u003c/View\u003e\n      );\n  }\n\n}\n```\n\n### Function Component:\n\n```js\n'use strict';\n\nimport React, { useState } from 'react';\nimport { View, Text, TextInput, TouchableHighlight } from 'react-native';\nimport { useValidation } from 'react-native-form-validator';\n\nconst FormTest = () =\u003e {\n  const [name, setName] = useState('My name');\n  const [email, setEmail] = useState('tibtib@gmail.com');\n  const [number, setNumber] = useState('56');\n  const [date, setDate] = useState('2017-03-01');\n  const [newPassword, setNewPassword] = useState('');\n  const [confirmPassword, setConfirmPassword] = useState('');\n\n  const { validate, isFieldInError, getErrorsInField, getErrorMessages } =\n    useValidation({\n      state: { name, email, number, date, newPassword, confirmPassword },\n    });\n\n  const _onPressButton = () =\u003e {\n    validate({\n      name: { minlength: 3, maxlength: 7, required: true },\n      email: { email: true },\n      number: { numbers: true },\n      date: { date: 'YYYY-MM-DD' },\n      confirmPassword: { equalPassword: newPassword },\n    });\n  };\n\n  return (\n    \u003cView\u003e\n      \u003cTextInput onChangeText={setName} value={name} /\u003e\n      \u003cTextInput onChangeText={setEmail} value={email} /\u003e\n      \u003cTextInput onChangeText={setNumber} value={number} /\u003e\n      \u003cTextInput onChangeText={setDate} value={date} /\u003e\n      {isFieldInError('date') \u0026\u0026\n        getErrorsInField('date').map(errorMessage =\u003e (\n          \u003cText\u003e{errorMessage}\u003c/Text\u003e\n        ))}\n\n      \u003cTextInput\n        onChangeText={setNewPassword}\n        value={newPassword}\n        secureTextEntry={true}\n      /\u003e\n      \u003cTextInput\n        onChangeText={setConfirmPassword}\n        value={confirmPassword}\n        secureTextEntry={true}\n      /\u003e\n      {isFieldInError('confirmPassword') \u0026\u0026\n        getErrorsInField('confirmPassword').map(errorMessage =\u003e (\n          \u003cText\u003e{errorMessage}\u003c/Text\u003e\n        ))}\n\n      \u003cTouchableHighlight onPress={_onPressButton}\u003e\n        \u003cText\u003eSubmit\u003c/Text\u003e\n      \u003c/TouchableHighlight\u003e\n\n      \u003cText\u003e{getErrorMessages()}\u003c/Text\u003e\n    \u003c/View\u003e\n  );\n};\n\nexport default FormTest;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperscrew%2Freact-native-form-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperscrew%2Freact-native-form-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperscrew%2Freact-native-form-validator/lists"}