Skip to content
nexubDesign System
v2.4.0

Components · Mobile only · Privacy

Sensitive Value

AlphaiOS & Android

Masks a balance or card number until revealed; re-masks when the app goes to the background and reads as "hidden".

Usage

@nexub/react-native
import { SensitiveValue } from '@nexub/react-native';

<SensitiveValue label="Balance"><Amount value={2400} currency="SGD" /></SensitiveValue>

Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.

On device

Sensitive Value on iPhone (iOS simulator)

iPhone (iOS simulator)

Sensitive Value on Pixel (Android emulator)

Pixel (Android emulator)

Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.

SensitiveValue props

SensitiveValue props (React Native)
PropTypeDefaultDescription
labelrequiredstring—What it is, e.g. "Balance" (used for the toggle and the masked reading).
childrenrequiredstring—The formatted value, e.g. "$12,480.50".
variantReact.ComponentProps<typeof Text>['variant']'title-lg'—
revealedboolean——
defaultRevealedbooleanfalse—
onRevealedChange(revealed: boolean) => void——