A React Native based component for creating Input Class in your application.
- Demo
- Installation
- Supported versions
- Usage
- Props
- Methods
- Want to Contribute?
- Collection of Components
- Changelog
- License
- Keywords
$ npm install rn-weblineindia-input-class --save
We have tested this component in ReactNative 0.60 - 0.62.5. You can still use it in other versions.
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 | 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 |
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. |
- 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.
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.
Detailed changes for each release are documented in CHANGELOG.md.
rn-weblineindia-input-class, react-native-input-class, input-class, react-native