React Native Best Practices
React Native & Expo engineering standards.
by dokhacgiakhoa · MIT
The skill
React Native & Expo engineering standards.
React Native & Expo Best Practices
Goal: Build "Write Once, Run Everywhere" mobile apps that feel 100% native.
1. Architecture: Expo Router
- File-based Routing: Use
app/directory similar to Next.js. - Linking: Define schemes in
app.jsonfor deep linking. - Layouts: Use
_layout.tsxfor shared navigation wrappers (Stack, Tabs).
2. UI & Styling
- NativeWind: Use
nativewind(Tailwind for RN) for styling. It's faster and more familiar. - FlashList: Replace
FlatListwith Shopify'sFlashListfor 5x performance on long lists. - Safe Area: Always wrap screen content in
SafeAreaView(or use spacing tokens that account for insets).
3. Performance Optimization
- Image Caching: Use
expo-imageinstead of React Native's<Image />.- Features: Blurhash, caching, preloading.
- Reanimated: Use
react-native-reanimatedfor 60fps animations (runs on UI thread), avoiding the JS bridge. - Hermes: Ensure Hermes engine is enabled in
app.jsonfor faster startup and smaller bundle size.
4. Data Management
- TanStack Query (React Query): Standard for async server state. Handle
offlinestatus gracefully. - MMKV: Use
react-native-mmkvfor synchronous local storage (replacing Async Storage). It is ~30x faster.
5. Debugging & Dev Experience
- EAS Build: Use Expo Application Services (EAS) for cloud builds.
- Expo Go: Use for rapid prototyping, but switch to "Development Build" (Prebuild) if adding native modules.
Checklist:
- [ ] Is Hermes enabled?
- [ ] Are images using
expo-image? - [ ] Is navigation handled by Expo Router?
- [ ] Are heavy computations moved off the JS thread?
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: dokhacgiakhoa/react-native-best-practices-40102077477.
Details
- Publisher
- dokhacgiakhoa
- Category
- Software Development › Mobile apps
- License
- MIT
- Updated
- 2026-06-11
References
More from dokhacgiakhoa
- 3D Web Experience Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and i…
- Ab Test Setup Structured guide for setting up A/B tests with mandatory gates for hypothesis, metrics, and execu…
- Accessibility Compliance Accessibility Audit You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive…
- Active Directory Attacks This skill should be used when the user asks to "attack Active Directory", "exploit AD", "Kerbero…