@twotalltotems/react-native-otp-input
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -15,3 +15,4 @@ import React, { Component } from 'react' | ||
autoFocusOnLoad: PropTypes.bool, | ||
code: PropTypes.string, | ||
code: PropTypes.string, | ||
secureTextEntry: PropTypes.bool, | ||
} | ||
@@ -25,2 +26,3 @@ | ||
autoFocusOnLoad: true, | ||
secureTextEntry: false | ||
} | ||
@@ -176,3 +178,3 @@ | ||
renderOneInputField = ( _ , index ) => { | ||
const { codeInputFieldStyle, codeInputHighlightStyle } = this.props | ||
const { codeInputFieldStyle, codeInputHighlightStyle, secureTextEntry } = this.props | ||
const { defaultTextFieldStyle } = styles | ||
@@ -195,2 +197,3 @@ const { selectedIndex, digits } = this.state | ||
selectionColor="#00000000" | ||
secureTextEntry={secureTextEntry} | ||
/> | ||
@@ -197,0 +200,0 @@ </View> |
{ | ||
"name": "@twotalltotems/react-native-otp-input", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"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", |
@@ -70,2 +70,3 @@  | ||
| onCodeFilled | NO | Callback when the last digit is entered | | ||
| secureTextEntry | NO | Hide contents of text fields | | ||
@@ -77,3 +78,3 @@ ## Notes | ||
If you are interested in Android SMS Retriever API, I would suggest @Faizal's repo [React-Native-OTP-Verify](https://github.com/faizalshap/react-native-otp-verify). It looks pretty cool and it should be straight-forward to use React-Native-OTP-Verify along with this library. | ||
If you are interested in Android SMS Retriever API, we would suggest @Faizal's repo [React-Native-OTP-Verify](https://github.com/faizalshap/react-native-otp-verify). It looks pretty cool and it should be straight-forward to use React-Native-OTP-Verify along with this library. | ||
@@ -80,0 +81,0 @@ ## Roadmap |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18585
220
129
0