A react-native confirmation code field for both IOS and Android (base on this project Migration Guide)
yarn add react-native-confirmation-code-field
# or
npm install react-native-confirmation-code-field
Also you can try the beta version. What new in next version?
yarn add react-native-confirmation-code-field@beta
# or
npm install react-native-confirmation-code-field@beta
import React, { Component } from 'react';
import CodeInput from 'react-native-confirmation-code-field';
class App extends Component {
handlerOnFulfill = code => console.log(code);
render() {
return <CodeInput onFulfill={this.handlerOnFulfill} />;
}
}