expo-otp-inputs
is fully customizable, React-Native package, that provides solution for One-time password feature with user friendly events like moving to previous input with backspace or going to next when filled in. It supports pasting and otp code into inputs
Supported version: react-native >= 0.59.0
$ yarn add expo-otp-inputs expo-clipboard
import React, { Component } from 'react';
import { View } from 'react-native';
import OtpInputs from 'expo-otp-inputs';
export default class App extends Component {
render() {
return (
<View style={styles.container}>
<OtpInputs
handleChange={(code) => console.log(code)}
numberOfInputs={6}
/>
</View>
);
}
}
Great thanks to : @kantorm. For the creation of React-Native-Otp-Inputs of which this module is derived from