What problem does this solve
Great validation libraries already exist, but the default set of React PropTypes is pretty sparse by comparison. This just wraps the popular validator.js library into prop types that support the
var ValidatorPropTypes = ;React;
The following prop types are available:
Missing functions ?
There's no easy way to wrap validator functions that take multiple, or optional arguments. This is why functions like
isMobilePhone aren't supported (because of the
locale argument). Suggestions for an api for those are encouraged.