claude-craft / reactnative
CLAUDE.md106 starsChanged 4 months agoMITView on GitHub
Activation bare RN 0.85 : Expo SDK 56+ active la New Architecture par défaut — aucune config requise. Source : RNGH 3.0 Migration Guide Reanimated 4 (^4.0.0) utilise Worklets 2 — animations sur le UI thread via JSI, zéro Bridge, 60 fps garanti. Bridgeless Mode (RN 0.85, nouveaux projets) : supprime le legacy bridge (JSI only).
- Installs packages
In this repository60 other files it gives its agents.
- docs/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- .claude/references/angular/CLAUDE.mdCLAUDE.md
- .claude/references/flutter/CLAUDE.mdCLAUDE.md
- .claude/references/laravel/CLAUDE.mdCLAUDE.md
- .claude/references/paperclip/CLAUDE.mdCLAUDE.md
- .claude/references/svelte/CLAUDE.mdCLAUDE.md
- .claude/references/symfony/CLAUDE.mdCLAUDE.md
- .claude/references/vite/CLAUDE.mdCLAUDE.md
- .claude/references/vuejs/CLAUDE.mdCLAUDE.md
- aggregatesSkill
- api-gatewaySkill
- architectSkill
- architecture-clean-dddSkill
- architectureSkill
- asyncSkill
- atomic-tasksSkill
- coding-standardsSkill
- cqrsSkill
- ddd-patternsSkill
- debug-methodicalSkill
- design-md-conventionSkill
- docker-hadolintSkill
- doctrine-extensionsSkill
- documentationSkill
- domain-eventsSkill
- dynamic-workflowsSkill
- ecosystem-toolsSkill
- edge-computingSkill
- event-drivenSkill
- git-workflowSkill
- graphqlSkill
- i18nSkill
- kiss-dry-yagniSkill
- monorepoSkill
- multitenantSkill
- navigationSkill
- observabilitySkill
- parallel-worktreesSkill
- performanceSkill
- quality-toolsSkill
- remotionSkill
- security-flutterSkill
- security-reactnativeSkill
- security-reactSkill
- securitySkill
- security-symfonySkill
- socratic-brainstormSkill
- solid-principlesSkill
- state-managementSkill
- testing-flutterSkill
- testing-pythonSkill
- testing-reactnativeSkill
- testing-reactSkill
- testingSkill
- testing-symfonySkill
- toolingSkill
- value-objectsSkill
- wasmSkill
- workflow-analysisSkill
The file
Files
React Native 0.85 - Quick Reference
Versions Requises (2026)
| Composant | Version | Notes |
| React Native | 0.85 | New Architecture activée par défaut |
| Expo SDK | 56+ | New Architecture on by default |
| Node.js | 22.x LTS | RN 0.85 requiert Node 22+ minimum |
| TypeScript | 5.x+ | Strict mode obligatoire |
| React Navigation | 7.x | Via Expo Router ou standalone |
| Reanimated | 4 (^4.0.0) | Worklets 2 + JSI backend partagé |
| Gesture Handler | 3.0+ | Breaking changes vs 2.x — API Gesture.* |
| TanStack Query | 5.x | gcTime remplace cacheTime |
| Zustand | 5.x | useShallow, API création modifiée vs 4.x |
Architecture Feature-Based
src/
├── app/ # Expo Router (file-based routing)
│ ├── (auth)/ # Auth group
│ ├── (tabs)/ # Main tabs group
│ └── _layout.tsx # Root layout
├── components/ # ui/, forms/, shared/
├── features/ # Modules métier (auth, profile, settings...)
│ └── [feature]/
│ ├── components/
│ ├── hooks/
│ ├── store/
│ └── types/
├── hooks/ # Custom hooks globaux
├── services/ # API, storage
├── stores/ # Zustand stores globaux
├── navigation/ # Config navigation (si non-Expo)
├── theme/ # Colors, spacing, typography
└── types/ # Types globauxNew Architecture (activée par défaut RN 0.85)
| Ancien (Paper / Bridge) | Nouveau (Fabric / TurboModules) |
| Bridge JSON asynchrone | JSI : appels synchrones JS ↔ C++ |
NativeModules JSON | TurboModules : interfaces TypeSpec typées |
| UI Manager | Fabric : rendu concurrent C++ |
| Hermes optionnel | Hermes V1 par défaut |
Activation bare RN 0.85 :
# Android
echo 'newArchEnabled=true' >> android/gradle.properties
# iOS
cd ios && RCT_NEW_ARCH_ENABLED=1 pod installExpo SDK 56+ active la New Architecture par défaut — aucune config requise.
Gesture Handler 3.0 — Breaking Changes
npm install react-native-gesture-handler@^3.0.0// ✅ RNGH 3.0 — GestureHandlerRootView obligatoire
import { GestureHandlerRootView } from 'react-native-gesture-handler';
export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
{/* ... */}
</GestureHandlerRootView>
);
}
// ✅ Nouvelle API Gesture (remplace PanGestureHandler/TapGestureHandler composants)
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
const tap = Gesture.Tap().onEnd(() => console.log('tapped'));Source : RNGH 3.0 Migration Guide
Navigation — Expo Router vs React Navigation 7
| Scénario | Solution |
| Projet Expo (recommandé) | Expo Router — file-based, type-safe, deep linking auto |
| Projet bare sans Expo | React Navigation 7 standalone (@react-navigation/native) |
| Migration Expo → Expo Router | Expo Router v4+ (SDK 56) |
// React Navigation 7 — setup bare (non-Expo)
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
const Stack = createNativeStackNavigator<RootStackParamList>();
export function AppNavigator() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={HomeScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}Reanimated 4 + Bridgeless Mode
Reanimated 4 (^4.0.0) utilise Worklets 2 — animations sur le UI thread via JSI, zéro Bridge, 60 fps garanti.
const animatedStyle = useAnimatedStyle(() => {
'worklet';
return { transform: [{ translateX: offset.value }] };
});Bridgeless Mode (RN 0.85, nouveaux projets) : supprime le legacy bridge (JSI only).
# android/gradle.properties
bridgelessEnabled=trueChecklist Rapide
- RN 0.85, Node 22+, Expo SDK 56+
- New Architecture activée (Fabric + TurboModules)
- Gesture Handler 3.0+ (
@^3.0.0, pas 2.x) - Reanimated 4 (
^4.0.0) + Worklets 2 - TanStack Query v5 (
gcTimepascacheTime) - Zustand v5 (API
useShallow,createStore) - TypeScript strict + Codegen spec pour modules natifs
- Tests >= 80% coverage (Jest + Detox E2E)
Documentation Complète
architecture.md— Patterns feature-based, Clean Architecturecoding-standards.md— TypeScript, conventions, hooks patternstooling.md— Expo CLI, EAS, RNGH 3.0, Reanimated 4new-architecture.md— JSI, TurboModules, Fabric, Bridgelessnavigation.md— Expo Router, React Navigation 7state-management.md— TanStack Query v5, Zustand v5performance.md— Optimisations, profiling, Hermestesting.md— Jest, Detox, stratégies TDDsecurity.md— Stockage sécurisé, auth, deeplinksquality-tools.md— ESLint, TypeScript, auditproject-context.md— Template de contexte projet
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

