Langsung ke konten
Skillpedia
Aplikasi mobile41k Β· #6700

react-native-architecture

Fungsinya

Skill ini membantu Anda membangun aplikasi mobile menggunakan React Native dan Expo. Skill ini menyediakan struktur siap pakai dengan pengorganisasian kode, navigasi antar layar, dan fitur seperti akses offline.

Kapan dipakai

  • βœ“Saat memulai proyek aplikasi mobile baru.
  • βœ“Saat Anda membutuhkan cara yang rapi untuk berpindah antar layar aplikasi.
  • βœ“Jika aplikasi perlu tetap bisa digunakan tanpa koneksi internet.

Link skill

https://github.com/wshobson/agents/blob/main/plugins/frontend-mobile-development/skills/react-native-architecture/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/wshobson/agents/blob/main/plugins/frontend-mobile-development/skills/react-native-architecture/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBagaimana cara mengorganisir kode untuk aplikasi React Native baru saya?”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini menyarankan struktur folder untuk mengatur kode aplikasi Anda. Skill ini juga menunjukkan cara mengatur navigasi antar layar dan memberikan tips agar aplikasi tetap berjalan lancar, bahkan saat offline.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

React Native Architecture

Production-ready patterns for React Native development with Expo, including navigation, state management, native modules, and offline-first architecture.

When to Use This Skill

  • Starting a new React Native or Expo project
  • Implementing complex navigation patterns
  • Integrating native modules and platform APIs
  • Building offline-first mobile applications
  • Optimizing React Native performance
  • Setting up CI/CD for mobile releases

Core Concepts

1. Project Structure

src/
β”œβ”€β”€ app/                    # Expo Router screens
β”‚   β”œβ”€β”€ (auth)/            # Auth group
β”‚   β”œβ”€β”€ (tabs)/            # Tab navigation
β”‚   └── _layout.tsx        # Root layout
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ui/                # Reusable UI components
β”‚   └── features/          # Feature-specific components
β”œβ”€β”€ hooks/                 # Custom hooks
β”œβ”€β”€ services/              # API and native services
β”œβ”€β”€ stores/                # State management
β”œβ”€β”€ utils/                 # Utilities
└── types/                 # TypeScript types

2. Expo vs Bare React Native

Feature Expo Bare RN
Setup complexity Low High
Native modules EAS Build Manual linking
OTA updates Built-in Manual setup
Build service EAS Custom CI
Custom native code Config plugins Direct access

Quick Start

# Create new Expo project
npx create-expo-app@latest my-app -t expo-template-blank-typescript

# Install essential dependencies
npx expo install expo-router expo-status-bar react-native-safe-area-context
npx expo install @react-native-async-storage/async-storage
npx expo install expo-secure-store expo-haptics
// app/_layout.tsx
import { Stack } from 'expo-router'
import { ThemeProvider } from '@/providers/ThemeProvider'
import { QueryProvider } from '@/providers/QueryProvider'

export default function RootLayout() {
  return (
    <QueryProvider>
      <ThemeProvider>
        <Stack screenOptions={{ headerShown: false }}>
          <Stack.Screen name="(tabs)" />
          <Stack.Screen name="(auth)" />
          <Stack.Screen name="modal" options={{ presentation: 'modal' }} />
        </Stack>
      </ThemeProvider>
    </QueryProvider>
  )
}

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

Do's

  • Use Expo - Faster development, OTA updates, managed native code
  • FlashList over FlatList - Better performance for long lists
  • Memoize components - Prevent unnecessary re-renders
  • Use Reanimated - 60fps animations on native thread
  • Test on real devices - Simulators miss real-world issues

Don'ts

  • Don't inline styles - Use StyleSheet.create for performance
  • Don't fetch in render - Use useEffect or React Query
  • Don't ignore platform differences - Test on both iOS and Android
  • Don't store secrets in code - Use environment variables
  • Don't skip error boundaries - Mobile crashes are unforgiving
Pertanyaan umum

Apa itu Expo?

Expo adalah alat yang memudahkan pengembangan aplikasi React Native dengan menangani banyak konfigurasi yang rumit untuk Anda.

Apa arti 'offline-first'?

Artinya aplikasi dirancang agar tetap bisa bekerja saat pengguna tidak memiliki koneksi internet, dengan menyimpan data untuk disinkronkan nanti.

Apakah saya perlu mengetahui pemrograman native (Swift/Kotlin)?

Umumnya tidak. Expo dan React Native menangani sebagian besar hal itu, tetapi skill ini menyebutkan kemungkinan mengintegrasikan kode native jika diperlukan.

Detail

Deskripsi asli dari pembuat

Build production React Native apps with Expo, navigation, native modules, offline sync, and cross-platform patterns. Use when developing mobile apps, implementing native integrations, or architecting React Native projects.

repo: wshobson/agents

Popularitas

Bintang GitHub
41k
Peringkat
#6700
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa