1.0.1 • Published 2 months ago

rn-weblineindia-input-class v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
2 months ago

React Native - Input Class

A React Native based component for creating Input Class in your application.

Getting started

Demo

npm.io

Installation

$ npm install rn-weblineindia-input-class --save

Supported versions

We have tested this component in ReactNative 0.60 - 0.62.5. You can still use it in other versions.

Usage

import InputClass from 'rn-weblineindia-input-class';

<InputClass
  placeholder="Email"
  type="Email"
  value={email}
  onChangeText={(text) => this.setState({ email: text })}
  keyboardType="email-address"
  onEndError={(status) => this.onEndError(status)}
/>

Props

PropsTypeRequiredDescription
typestringyesType of input class like, Text, Email, Number, PhoneNumber
valuestringyesValue to be shown in input class
secureTextEntrybooleannoSet true when you want password, encrypted content
keyboardTypestringnoKeyboard type like, email-address, number, phone-number, default
styleobjectyesStyle object to set style to input class
placeholderstringnoPlaceholder text which is shown when to instruct user about input class

Methods

MethodDescription
onChangeTextCallback method that is called when user change text on Input Class.
onEndErrorCallback method that is called when user end editing and validation will be check and give call back to InputClass Wrong Email Format.

Want to Contribute?

  • Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).
  • Fork it.
  • Create new branch to contribute your changes.
  • Commit all your changes to your branch.
  • Submit a pull request.

Collection of Components

We have built many other components and free resources for software development in various programming languages. Kindly click here to view our Free Resources for Software Development.


Changelog

Detailed changes for each release are documented in CHANGELOG.md.


License

MIT


Keywords

rn-weblineindia-input-class, react-native-input-class, input-class, react-native