Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@twotalltotems/react-native-otp-input

Package Overview
Dependencies
Maintainers
3
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twotalltotems/react-native-otp-input - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

__tests__/App.test.js

4

index.js

@@ -198,4 +198,5 @@ import React, { Component } from 'react'

return (
<View pointerEvents="none" key={index + "view"}>
<View pointerEvents="none" key={index + "view"} testID="inputSlotView">
<TextInput
testID="textInput"
underlineColorAndroid='rgba(0,0,0,0)'

@@ -232,2 +233,3 @@ style={selectedIndex === index ? [defaultTextFieldStyle, codeInputFieldStyle, codeInputHighlightStyle] : [defaultTextFieldStyle, codeInputFieldStyle]}

<View
testID="OTPInputView"
style={style}

@@ -234,0 +236,0 @@ >

{
"name": "@twotalltotems/react-native-otp-input",
"version": "1.2.0",
"version": "1.2.1",
"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)",
"main": "index.js",
"directories": {
"test": "test"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"jest": {
"preset": "react-native",
"setupFilesAfterEnv": [
"<rootDir>setup-tests.js"
],
"testEnvironment": "enzyme",
"testEnvironmentOptions": {
"enzymeAdapter": "react16"
},
"testMatch": [
"<rootDir>/__tests__/*.test.js"
],
"transform": {
"^.+\\.jsx$": "babel-jest"
}
},
"repository": {

@@ -31,6 +45,19 @@ "type": "git",

"contributors": [
"Anson Yao <yaoenxin@gmail.com> (https://github.com/ansonyao)",
"Becky Wu <becky.wu@ttt.studio> (https://github.com/BeckyWu220)",
"Felipe Peña <felipe@penya.cl> (http://felipe.penya.cl)"
],
"license": "MIT"
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.8.4",
"babel-jest": "^25.1.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"jest": "^25.1.0",
"jest-environment-enzyme": "^7.1.2",
"jest-enzyme": "^7.1.2",
"jsdom": "^16.1.0",
"react": "16",
"react-dom": "^16.12.0",
"react-native": "^0.61.5"
}
}
![PaginatableList](https://raw.githubusercontent.com/Twotalltotems/react-native-otp-input/master/assets/otp_banner.jpg)
# React Native OTP Input
![Tests](https://github.com/Twotalltotems/react-native-otp-input/workflows/Tests/badge.svg)
**@twotalltotems/react-native-otp-input** is a tiny Javascript library which provides an elegant UI for the end user to input one time passcode (OTP). It handles the input suggestion on iOS when the OTP SMS is received. For Android, it will autofill when the user presses the copy button on the SMS notification bar. It also features a carefully crafted flow to handle edge cases for volatile user gestures. We provide default UI, but you can always customize the appearance as you like.

@@ -85,3 +87,4 @@

* [ ] Typescript
* [ ] Add unit tests
* [x] Add basic unit tests
* [ ] Add integration tests

@@ -91,3 +94,3 @@ ## Contributors

<tr border="0" style="border: none; ">
<th border="0" style="border-left: none; border-right: none;">
<th border="0" style="border-left: none; border-right: none;">
<img src="https://avatars1.githubusercontent.com/u/1243479?s=400&v=4" width="60px;" style="border-radius: 50%;"/>

@@ -94,0 +97,0 @@ <br />

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc