react-native-best-practices

React Native & Expo Best Practices

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-best-practices" with this command: npx skills add dokhacgiakhoa/antigravity-ide/dokhacgiakhoa-antigravity-ide-react-native-best-practices

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.json for deep linking.

  • Layouts: Use _layout.tsx for shared navigation wrappers (Stack, Tabs).

  1. UI & Styling
  • NativeWind: Use nativewind (Tailwind for RN) for styling. It's faster and more familiar.

  • FlashList: Replace FlatList with Shopify's FlashList for 5x performance on long lists.

  • Safe Area: Always wrap screen content in SafeAreaView (or use spacing tokens that account for insets).

  1. Performance Optimization
  • Image Caching: Use expo-image instead of React Native's <Image /> .

  • Features: Blurhash, caching, preloading.

  • Reanimated: Use react-native-reanimated for 60fps animations (runs on UI thread), avoiding the JS bridge.

  • Hermes: Ensure Hermes engine is enabled in app.json for faster startup and smaller bundle size.

  1. Data Management
  • TanStack Query (React Query): Standard for async server state. Handle offline status gracefully.

  • MMKV: Use react-native-mmkv for synchronous local storage (replacing Async Storage). It is ~30x faster.

  1. 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?

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

ui-ux-pro-max-skill

No summary provided by upstream source.

Repository SourceNeeds Review
General

notion-mcp

No summary provided by upstream source.

Repository SourceNeeds Review
General

filesystem-mcp

No summary provided by upstream source.

Repository SourceNeeds Review