1.0.21 • Published 6 years ago

react-native-simple-code-input v1.0.21

Weekly downloads
34
License
ISC
Repository
gitlab
Last release
6 years ago

Installation:
yarn add react-native-simple-code-input

Usage:
import PinCode from 'react-native-simple-code-input';

<PinCode
    onFulFill={value => alert('value', value)}
    length={8}
/>

ClearCode:

<PinCode
    ref={ref => this.pincode = ref}
    onFulFill={value => alert('value', value)}
    length={8}
/>

this.pincode.clearCode();

Customize Code Component:

<PinCode
    ref={ref => this.pincode = ref }
    onFulFill={value => console.log('input value', value)}
    length={8}
    onChangeText={value => console.log('input value', value)}
    keyboardType='numeric'
    cuztomize
    renderValueComponent={value => <Text red>{value}</Text>}
    renderEmptyComponent={value => <Text red>x</Text>}
/>  

<Text onPress={() => this.pincode && this.pincode.clearCode()}>Clear</Text>  
1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago