rn-weblineindia-input-class
v1.0.1
Published
A React Native based component for creating Input Class in your application.
Downloads
3
Maintainers
Readme
React Native - Input Class
A React Native based component for creating Input Class in your application.
Getting started
- Demo
- Installation
- Supported versions
- Usage
- Props
- Methods
- Want to Contribute?
- Collection of Components
- Changelog
- License
- Keywords
Demo
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
| Props | Type | Required | Description |
|----------------------|----------|--------------|-------------------------------------------------------------------------------|
| type | string
| yes | Type of input class like, Text, Email, Number, PhoneNumber |
| value | string
| yes | Value to be shown in input class |
| secureTextEntry | boolean
| no | Set true when you want password, encrypted content |
| keyboardType | string
| no | Keyboard type like, email-address, number, phone-number, default |
| style | object
| yes | Style object to set style to input class |
| placeholder | string
| no | Placeholder text which is shown when to instruct user about input class |
Methods
| Method | Description | |----------------------|------------------------------------------------------------------------------------------------------------------------------------------| | onChangeText | Callback method that is called when user change text on Input Class. | | onEndError | Callback 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
Keywords
rn-weblineindia-input-class, react-native-input-class, input-class, react-native