react-native-number-password-box

1.0.0 • Public • Published

react-native-number-password-box

Demo

demo

Installation

$ npm install --save react-native-number-password-box

Use

import React, {View, Text, Component} from 'react-native';
import NumberPasswordBox from 'react-native-number-password-box';
 
class Demo extends React.Component {
  constructor(props) {
   super(props);
    
    this.state = {
      password: ''
    };
  }
  
  render() {
   return (
      <View style={{flex:1}}>
        <Text style={{marginVertical: 20}}>{this.state.password}</Text>
        
        <NumberPasswordBox onChange={password=>this.setState({password}) />
     </View>
   );
  }
}

Method

onChange: function(password)

Props

style:

containerStyle:

/react-native-number-password-box/

    Package Sidebar

    Install

    npm i react-native-number-password-box

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • lzxhahaha