react-native-theme-transition

react-native-theme-transition

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "react-native-theme-transition" with this command: npx skills add marioprieta/react-native-theme-transition/marioprieta-react-native-theme-transition-react-native-theme-transition

react-native-theme-transition

Smooth, animated theme transitions for React Native. Captures a screenshot, overlays it, switches colors underneath, and fades out — all in JS via Reanimated. Expo Go compatible. No native code required.

Installation

Expo (SDK 54+): npx expo install react-native-theme-transition react-native-worklets

Add react-native-worklets/plugin as the last plugin in babel.config.js . On SDK 55+, do NOT add react-native-reanimated/plugin — babel-preset-expo already includes it.

Key rules

  • All themes must share identical token keys — use Record<keyof typeof light, string> .

  • 'system' is reserved — cannot be a theme key.

  • Provider wraps everything — content outside won't be in the screenshot.

  • initialTheme is read once — use a bridge component for external stores.

  • setTheme during a transition returns false — use isTransitioning to disable buttons.

  • onThemeChange is the only guaranteed callback — onTransitionEnd skips on capture failure.

  • Don't change styles based on isTransitioning — the screenshot captures current visuals.

  • No native <Switch> — use a custom toggle with useTheme({}) and plain React styles.

  • No style={({ pressed }) => (...)} — use static style={{...}} .

  • Selection tracking: any component whose visual state changes on theme switch must use useTheme({}) or useTheme({ initialSelection }) .

Reference guides

You need to... Read

Full API details, all options, callback ordering, exported types references/api.md

Set up a new project from scratch (Expo or CLI) references/new-project.md

Migrate from Context, Zustand, Redux, etc. references/existing-project.md

Recipes: system theme, persistence, haptics, React Navigation, Expo Router, modals, multi-theme, StatusBar, analytics references/recipes.md

Debug issues: stuck overlay, flash, type errors, system theme not working references/troubleshooting.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

OpenClaw Skill Growth

Make OpenClaw Skills observable, diagnosable, and safely improvable over time. Use this when the user wants to maintain many SKILL.md files, inspect repeated...

Registry SourceRecently Updated
171Profile unavailable
General

Find Skills for ClawHub

Search for and discover OpenClaw skills from ClawHub (the official skill registry). Activate when user asks about finding skills, installing skills, or wants...

Registry SourceRecently Updated
2871Profile unavailable
General

Skill Listing Polisher

Improve a skill's public listing before publish. Use when tightening title, description, tags, changelog, and scan-friendly packaging so the listing looks cl...

Registry SourceRecently Updated
1130Profile unavailable
General

Skill Priority Setup

Scans installed skills, suggests L0-L3 priority tiers, and auto-configures skill injection policy. Use when: setting up skill priorities, optimizing token bu...

Registry SourceRecently Updated
2510Profile unavailable