react-native-input-visa

1.0.2 • Public • Published

REACT-NATIVE-INPUT-VISA

React-native-input-visa make visa entry easier

Installation

npm i react-native-input-visa

or

yarn add react-native-input-visa

Usage

const [value, setValue] = useState({});

<InputVisa
        styleContainerInput={styles.inputContainer}
        styleContainer={styles.container}
        styleTextInput={styles.textInput}
        value={value}
        onChangeText={text => {
          setValue(text);
        }}
      />

  inputContainer: {
    borderBottomColor:'gray',
    borderWidth:0,
    borderBottomWidth:2
  },
  textInput:{
    color:'black'
  },
  container:{
    marginHorizontal:10,
  }

Note

Value return : { 0:"", 1:"", 2:"", 3:"", } (key is index input)

If you want style border, you need to set borderWidth:0 first

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i react-native-input-visa

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

4.32 kB

Total Files

5

Last publish

Collaborators

  • hq.nguyen