# retyui/react-native-confirmation-code-field

A react-native confirmation code field compatible with iOS, Android and Web

Repository: https://github.com/retyui/react-native-confirmation-code-field
Canonical: https://ross.abutalabs.com/products/react-native-confirmation-code-field
Homepage: https://www.npmjs.com/package/react-native-confirmation-code-field
Language: TypeScript
License: MIT
License Family: permissive
Topics: react-native, react-native-component, react-native-library, code-verification, react-native-web, otp-inputs, one-time-password, android, ios, pin-code
Last push: 2026-03-31T13:03:27+00:00

## Health v2 (maintenance only)
Score: 81/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 75, release rhythm 77, longevity 100
- inputs: {"age_days": 2938, "days_push": 155, "days_rel": 155, "gap_med": 21, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1228, forks 128 (observed 2026-08-28T04:04:03.424862+00:00)

## What it is
A small, customizable React Native component for entering confirmation codes (OTP/PIN), compatible with iOS, Android, and React Native Web. It renders styled cells over an invisible TextInput and supports fast SMS code paste, partial clearing, masking, and formatting.

## Use cases
- input one-time password from SMS in a React Native app
- build a PIN code entry screen for mobile login
- add a 6-digit verification code field to a signup flow
- create a styled OTP input that works on iOS, Android, and web
- implement masked code input with custom cell rendering
- support fast paste of SMS verification codes on iOS

## When to choose
- you need a lightweight (~3.8 KB) OTP/PIN input for React Native
- you want cross-platform support including React Native Web
- you need customization of cell appearance, masking, or formatting
- you want iOS fast SMS paste and Android custom paste handling

## When to avoid
- you are not using React Native (e.g., native iOS/Android or plain web)
- you need a full form library rather than a single code input component
- you are on React 18 and cannot use version 9.x (requires React 19)

## Facets
- artifact type: library
- maturity: active
- function: ui-components, form-handling
- domain: mobile-development, frontend, web-development
- platform: -
- tags: otp-input, confirmation-code, pin-code, sms-code, react-native-web, typescript, ios, android, web, react-native

## Member repositories
- retyui/react-native-confirmation-code-field (main) score 81

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:03.424862+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:15:12.377613+00:00, confidence not recorded.
  - readme: https://github.com/retyui/react-native-confirmation-code-field (fetched 2026-08-28T04:04:03.424862+00:00, sha a94edb4beb82)
  - registry_npm: https://registry.npmjs.org/react-native-confirmation-code-field (fetched 2026-08-29T12:22:48.833787+00:00, sha 447570a734a3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
