Skip to main content
rule CX Codex

react-compiler-reanimated-shared-values — Claude Code rule: setup

react-compiler-reanimated-shared-values is a Claude Code rule for handling Reanimated shared values with React Compiler enabled. It directs code to use .get() and .set() rather than .value.

AGPL-3.0 ★ 88 updated 2026-11-17

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/rules/react-compiler-reanimated-shared-values.md
Open on GitHub

What react-compiler-reanimated-shared-values does

The rule requires .get() to read a Reanimated shared value and .set() to update it when React Compiler is enabled. A counter can update with count.set(count.get() + 1) and render its value with count.get().

React Compiler cannot track direct .value property access, so the rule avoids that pattern. To install it in Claude Code, place the file at .claude/rules/react-compiler-reanimated-shared-values.md.

What it helps with

  • replace direct .value reads with .get()
  • update Reanimated shared values through .set()
  • use Reanimated shared values with React Compiler enabled

Example prompts for the agent

  • Use .get() and .set() for Reanimated shared values in this component.
  • Update the count example to use Reanimated methods with React Compiler.

How to install react-compiler-reanimated-shared-values

Manually: put the files in place

.claude/rules/react-compiler-reanimated-shared-values.md

The paths frontmatter field limits the files

Step by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use

Questions about react-compiler-reanimated-shared-values

How do I install react-compiler-reanimated-shared-values in Claude Code?

Place the rule file at .claude/rules/react-compiler-reanimated-shared-values.md. Claude Code reads rules from that directory.

What does react-compiler-reanimated-shared-values do?

It directs code to access Reanimated shared values through .get() and .set() instead of using .value directly.

How should Reanimated shared values be accessed with React Compiler enabled?

Read them with .get() and update them with .set(). The compiler cannot track direct .value property access.

Similar IDE rules

All IDE rules for Frontend and UI →
reanimated-skia-performance andreev-danila reanimated-skia-performance — a skill that writes and reviews fast React Native animations and 2D graphics on Reanimated v4 and Skia. Useful when the UI stutters or you need custom drawing. CX Codex +1 988installs creating-reanimated-animations estevg creating-reanimated-animations generates React Native Reanimated v3 and v4 animation code. It helps build scroll-linked effects, layout transitions, spring physics, and gestures. CX Codex +1 879installs rerender-use-ref-transient-values tech-leads-club The rerender-use-ref-transient-values rule teaches the agent to store frequently changing values in useRef instead of useState to avoid re-rendering the component on every update. CX Codex +1 ★ 7,191repo stars vercel-react-native-skills vercel vercel-react-native-skills — a rules pack for React Native and Expo work: lists, animations, navigation, native modules. Load it so your agent makes mobile changes the same way every time. CX Codex +1 283,800installs company-values slavingia company-values is a Claude Code skill for shaping a minimalist company’s values and culture. It starts during culture planning, hiring preparation, or principle setting. CX Codex +1 2,600installs argent-react-native-optimization software-mansion argent-react-native-optimization is a Claude Code skill that profiles and optimizes React Native applications. It triggers when an app feels slow, drops frames, or needs faster startup time. CX Codex +1 32,700installs

From the same set47

The whole set →
design-review design-review is a Claude Code command that reviews a UI build for visual hierarchy and craft. It rates findings by severity and returns a verdict. CX Codex +1 ★ 88repo stars rendering-text-in-text-component rendering-text-in-text-component is a Claude Code rule that enforces wrapping strings in React Native Text elements. It prevents runtime crashes in mobile interfaces. CX Codex +1 ★ 88repo stars list-performance-callbacks list-performance-callbacks is a Claude Code rule for passing event handlers to list items. It applies when callbacks are used inside a list. CX Codex +1 ★ 88repo stars monorepo-native-deps-in-app monorepo-native-deps-in-app is a Claude Code rule that enforces adding native packages directly to the mobile app manifest. It prevents build failures caused by missed autolinking in monorepos. CX Codex +1 ★ 88repo stars react-compiler-destructure-functions react-compiler-destructure-functions is a Claude Code rule that enforces extracting hook functions early in render scope. It targets projects running the React Compiler. CX Codex +1 ★ 88repo stars ui-scrollview-content-inset ui-scrollview-content-inset is a Claude Code rule for changing ScrollView spacing when keyboards, toolbars, or content alter the available space. CX Codex +1 ★ 88repo stars monorepo-single-dependency-versions monorepo-single-dependency-versions is a Claude Code rule that pins identical dependency versions across monorepo packages. It stops bundle bloat and runtime version clashes. CX Codex +1 ★ 88repo stars animation-derived-value animation-derived-value is a Claude Code rule for computing one animated shared value from another. It applies to React Native Reanimated code that derives values. CX Codex +1 ★ 88repo stars

Project sponsors

Companies that keep this analytics open