@react-input-validator/rules
v2.0.3
Published
The validation rule objects used by the packages: `@react-input-validator/core`, `@react-input-validator/native` and `@react-input-validator/web`
Maintainers
Readme
@react-input-validator
It's to validate the input component value in React app (web and native). The value is validated based on the rule(s) defined for the input. If the input is invalid, the error message is shown near the input. Moreover, you can change the inputs' appearance when they are invalid or also valid after the invocation of validation as depicted by the pictures below:

![]()

It's very useful before submitted to the server.
How to install
For web app, install the following package:
npm i @react-input-validator/webFor React Native app, install the following package:
npm i @react-input-validator/nativeHow to use this package
Please see this docs. Additionally, you can take a look at the
example directory in the source code.
