Skip to content
Native Animation
Tap to Activate Mode animation preview

Tap to Activate Mode

A focused activation moment with expanding waves and a compact status summary.

$9 for this animation

Checkout opens soon. Leave your email and we will tell you the moment you can buy it.

One email when checkout opens. No spam.

Add to your project

Copy the component and its assets into your app with the Native Animation CLI, or paste the agent prompt into Claude Code, Codex or Cursor once the MCP server is connected.

npx nativeanimation add tap-to-activate-mode

About this animation

A focused activation moment with expanding waves and a compact status summary.

How it works

Tap the central control or provide active for controlled state. A spring drives the surface transition and summary reveal.

Install

npx expo install react-native-reanimated

Usage

<TapToActivateMode active={active} onToggle={setActive} />

Props

PropTypeDefaultDescription
activeboolean—Controls the state externally.
defaultActivebooleanfalseInitial state when uncontrolled.
onToggle(active: boolean) => void—Called after each toggle.
rows{ label: string; value: string }[]Mode, Apps blocked, DurationSummary rows.
accentColorstring'#415EEA'Active surface and wave color.
accessibilityLabelstring'Focus mode'Screen-reader label.
styleStyleProp<ViewStyle>—Container style.
testIDstring—Test identifier.

The forwarded ref exposes toggle() for guided demos and external controls.

Compatibility

Built for Expo SDK 57, React Native 0.86 and Reanimated 4.5. iOS and Android are supported but device-unverified; web is verified by the project gate. Works in Expo Go for SDK 57.

Accessibility

The control reports its selected state and reduced motion removes the wave expansion.