React Native Password Input for Expo

Install

Password Input · Create Password, native in Expo Go — the other variants are a tap away. No account needed.

Needs Expo Go for SDK 58 — update from the App Store or Play Store.

An eye toggle that twists between states, and a strength meter that springs full.

iOS · Android · Expo Go
9:41

Installation

One command copies the source into your app — you own the code and can change anything.

After you add the file, import it like any local component:

App.tsx
import { PasswordInput } from "@/components/ui/password-input";

Or add it with the CLI (installs any missing peers):

Usage

Colours, radius and light / dark come from useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.

Like this? There's a lot more in Pro Pro

12 full screens built from the same kit — install them the same way.

See what's in Pro

Props

PropTypeDefault
strength

Show the animated strength meter.

booleantrue
score

Custom strength scorer.

(pw) => 0–4built-in
requirements

Checklist under the field; true uses DEFAULT_PASSWORD_REQUIREMENTS (8+ chars, upper & lower, number, symbol).

{ label, test }[] | boolean—
confirmOf

Confirm-password mode: shows match / mismatch once the user types.

string—
matchMessage / mismatchMessage

Copy for confirm mode.

stringlabels.passwordsMatch / labels.passwordsDontMatch
floatingLabel

Passed to FloatingInput: set to false to put the label above the field (no notch) and show placeholder inside.

booleantrue
iconColor

Eye / eye-off toggle and clear button colour.

stringtheme mutedForeground
fieldStyle / inputStyle / labelStyle / messageStyle / counterStyle

Style slots passed straight to FloatingInput — see Floating Input.

StyleProp—
…FloatingInputProps

Every Floating Input prop (error, success, size, variant, …).

className

Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.

string—

Customization

You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.

Design theme

Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).

Variants

Use the variant chips on the preview to switch examples; each maps to a demo you can copy from the Code tab.

Style props

React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).

iconColor
string · default theme mutedForegroundEye / eye-off toggle and clear button colour.
fieldStyle / inputStyle / labelStyle / messageStyle / counterStyle
StylePropStyle slots passed straight to FloatingInput — see Floating Input.
className
stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.

Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.

Behaviour & accessibility

Touch
The eye button has a 44pt hit area and toggles secureTextEntry. With confirmOf, a match or mismatch message appears as soon as the typing diverges.
Motion
Eye and eye-off cross-fade with a spring twist. The four meter segments fill left to right in a stagger, and checklist ticks pop in as rules are met.
Keyboard
Auto-capitalisation and autocorrect are turned off for the field.
Screen readers
The toggle is a button labelled 'Show password' or 'Hide password'. The meter reads 'Password strength: Strong' and each requirement reads as done or not yet.

Source

FAQ

How do I make a password field in React Native?
Use ExpoKit's Password Input: run npx @expokit/cli@latest add password-input in your Expo or React Native project and it copies a ready-made password field into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.
Does Password Input work in Expo Go?
Yes. Password Input runs in Expo Go on iOS and Android with no development build — its packages (react-native-svg) are all included in Expo Go.
How do I add Password Input to my Expo app?
Run npx @expokit/cli@latest add password-input in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.
Is Password Input free?
Yes. Password Input is free: its full source is on this page and the CLI installs it without an account.
Can I change how Password Input looks?
Yes. It takes its colours, radius and light / dark mode from useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.