Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nexapp/react-native-text-input-validator

Package Overview
Dependencies
Maintainers
4
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nexapp/react-native-text-input-validator

Utility class that allow you to validate text formats for valid emails format, non-empty text and/or text matching.

  • 0.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
4
Weekly downloads
 
Created
Source

TextInputValidator

What is it ?

Utility class that allow you to validate text formats for valid emails format, non-empty text and/or text matching.

Installation

npm install @nexapp/react-native-text-input-validator --save

or

yarn add @nexapp/react-native-text-input-validator

Usage

import { TextInputValidator } from "@nexapp/react-native-text-input-validator"

Use to validate email

const validation = TextInputValidator.validateEmail("chucknorris@nexapp.ca");

The return value will be one of the following :
TextInputValidation.Empty
TextInputValidation.Valid
TextInputValidation.BadEmailFormat

Use to validate passwords

const validation =  TextInputValidator.validatePasswords("12345", "12345");

The return value will be one of the following :
TextInputValidation.Empty
TextInputValidation.DoNotMatch
TextInputValidation.Valid

Use to validate that a field is not empty

const validation =  TextInputValidator.validateNotEmpty("notEmptyString");

The return value will be one of the following :
TextInputValidation.Empty
TextInputValidation.Valid

Licence

MIT

Keywords

FAQs

Package last updated on 25 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc