@twotalltotems/react-native-otp-input
Advanced tools
Comparing version 1.0.21 to 1.0.22
import React, { Component } from 'react' | ||
import { View, TextInput, TouchableWithoutFeedback, Clipboard, Platform } from 'react-native' | ||
import { View, TextInput, TouchableWithoutFeedback, Clipboard, Platform, Keyboard } from 'react-native' | ||
import PropTypes from 'prop-types' | ||
@@ -48,2 +48,3 @@ import styles from './styles' | ||
}, 400) | ||
this.keyboardDidHideListener = Keyboard.addListener('keyboardDidHide', this.handleKeyboardDidHide) | ||
} | ||
@@ -55,4 +56,9 @@ | ||
} | ||
this.keyboardDidHideListener.remove() | ||
} | ||
handleKeyboardDidHide = () => { | ||
this._blurAllFields() | ||
return false | ||
} | ||
@@ -59,0 +65,0 @@ checkPinCodeFromClipBoard = () => { |
{ | ||
"name": "@twotalltotems/react-native-otp-input", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"description": "is a tiny JS library for one time passcode (OTP). Supports smart input suggestion on iOS and code autofill on Android (it will be filled when you press the copy button on the SMS notification bar)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
56496
12
191