Skip to content

QuocNguyen99/react-native-input-visa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published