react-native-confirmation-code-field
Advanced tools
Comparing version 3.7.1 to 3.9.0
@@ -5,2 +5,6 @@ # Change Log | ||
## 3.7.1 | ||
- Fix problem when cursor inherit `<Cell/>` styles [#72](https://github.com/retyui/react-native-confirmation-code-field/pull/72) | ||
## 3.7.0 | ||
@@ -7,0 +11,0 @@ |
{ | ||
"name": "react-native-confirmation-code-field", | ||
"version": "3.7.1", | ||
"version": "3.9.0", | ||
"main": "src/components/ConfirmationCodeInput/index.js", | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
# react-native-confirmation-code-field | ||
[![npm](https://img.shields.io/npm/v/react-native-confirmation-code-field.svg)](https://www.npmjs.com/package/react-native-confirmation-code-field) | ||
[![npm downloads](https://img.shields.io/npm/dm/react-native-confirmation-code-field.svg)](https://www.npmjs.com/package/react-native-confirmation-code-field) | ||
[![npm downloads](https://img.shields.io/npm/dm/react-native-confirmation-code-field.svg)](https://www.npmtrends.com/react-native-confirmation-code-field) | ||
[![Travis](https://img.shields.io/travis/retyui/react-native-confirmation-code-field.svg?label=unix)](https://travis-ci.org/retyui/react-native-confirmation-code-field) | ||
@@ -39,12 +39,10 @@ | ||
```js | ||
import React, { Component } from 'react'; | ||
import React, { useCallback } from 'react'; | ||
import CodeInput from 'react-native-confirmation-code-field'; | ||
class App extends Component { | ||
handlerOnFulfill = code => console.log(code); | ||
export const App = () => { | ||
const handlerOnFulfill = useCallback(code => console.log(code), []); | ||
render() { | ||
return <CodeInput onFulfill={this.handlerOnFulfill} />; | ||
} | ||
} | ||
return <CodeInput onFulfill={handlerOnFulfill} />; | ||
}; | ||
``` | ||
@@ -96,2 +94,5 @@ | ||
- [react-native-keycode](https://github.com/leanmotherfuckers/react-native-keycode) | ||
- [react-native-otp-input](https://github.com/Twotalltotems/react-native-otp-input) | ||
- [react-native-otp-inputs](https://github.com/dsznajder/react-native-otp-inputs) | ||
- [react-native-otp](https://github.com/thuansb/react-native-otp) | ||
- [react-native-pin-code](https://github.com/gkueny/react-native-pin-code) | ||
@@ -98,0 +99,0 @@ |
106
3
29902
17
660