install
source · Clone the upstream repo
git clone https://github.com/ComeOnOliver/skillshub
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ComeOnOliver/skillshub "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/pproenca/dot-skills/expo-react-native-coder" ~/.claude/skills/comeonoliver-skillshub-expo-react-native-coder && rm -rf "$T"
manifest:
skills/pproenca/dot-skills/expo-react-native-coder/SKILL.mdsource content
Expo React Native Coder Best Practices
Comprehensive feature development guide for Expo React Native applications. Contains 50 rules across 10 categories, covering everything from project setup to testing. Includes production-ready code templates for common features.
When to Apply
Reference these guidelines when:
- Setting up a new Expo project with TypeScript
- Building navigation with Expo Router (tabs, stacks, drawers, modals)
- Creating screens (list, detail, form, settings)
- Implementing authentication flows with protected routes
- Configuring deep linking and universal links
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Project Setup & Configuration | CRITICAL | |
| 2 | Routing & Navigation | CRITICAL | |
| 3 | Screen Patterns & Layouts | HIGH | |
| 4 | Data Fetching & State | HIGH | |
| 5 | Authentication & Security | HIGH | |
| 6 | Deep Linking & Universal Links | HIGH | |
| 7 | Native UX Patterns | MEDIUM-HIGH | |
| 8 | Forms & User Input | MEDIUM | |
| 9 | Assets & Theming | MEDIUM | |
| 10 | Error Handling & Testing | MEDIUM | |
Quick Reference
1. Project Setup & Configuration (CRITICAL)
- Configure TypeScript with strict modesetup-typescript-config
- Use typed app.config.tssetup-app-config-typescript
- EXPO_PUBLIC_ prefix for client varssetup-environment-variables
- EAS build profiles per environmentsetup-eas-build-profiles
- Development builds vs Expo Gosetup-development-build
2. Routing & Navigation (CRITICAL)
- File-based routing with Expo Routerroute-file-based-routing
- Tab navigator with route groupsroute-tab-navigator
- Dynamic route segments [param]route-dynamic-segments
- Nested stack in tabsroute-stack-within-tabs
- Modal screen presentationroute-modal-presentation
- Enable typed routesroute-typed-routes
- Drawer navigator setuproute-drawer-navigator
3. Screen Patterns & Layouts (HIGH)
- FlashList for large listsscreen-list-flashlist
- Pass minimal data via paramsscreen-detail-params
- Loading and error statesscreen-loading-state
- Pull-to-refresh patternscreen-pull-to-refresh
- Configure screen headersscreen-header-options
- Settings screen with SectionListscreen-settings-list
4. Data Fetching & State (HIGH)
- Server-side API routesdata-api-routes
- SecureStore for sensitive datadata-secure-store
- SQLite for complex local datadata-sqlite-local
- Refetch on screen focusdata-fetch-on-focus
- AsyncStorage for preferencesdata-async-storage-simple
- Cancel fetch on unmountdata-abort-controller
5. Authentication & Security (HIGH)
- Stack.Protected guardsauth-protected-routes
- Auth context with sessionauth-context-provider
- OAuth with AuthSessionauth-oauth-flow
- Login form with validationauth-login-form
- Splash screen during auth checkauth-splash-loading
6. Deep Linking & Universal Links (HIGH)
- Custom URL schemelink-deep-linking-scheme
- iOS Universal Linkslink-universal-links-ios
- Android App Linkslink-android-app-links
- Handle incoming URLslink-handle-incoming
7. Native UX Patterns (MEDIUM-HIGH)
- SafeAreaView for notchesux-safe-area-insets
- Status bar stylingux-status-bar
- Haptic feedback on actionsux-haptic-feedback
- Gesture handler for swipesux-gesture-handler
- KeyboardAvoidingViewux-keyboard-avoiding
8. Forms & User Input (MEDIUM)
- TextInput keyboard typesform-text-input-config
- Controlled inputs with useStateform-controlled-inputs
- Disable button during submitform-submit-button-state
- Dismiss keyboard on tap outsideform-dismiss-keyboard
9. Assets & Theming (MEDIUM)
- expo-image for cachingasset-image-optimization
- Load fonts with useFontsasset-font-loading
- @expo/vector-iconsasset-vector-icons
- Splash screen configurationasset-splash-screen
10. Error Handling & Testing (MEDIUM)
- Jest with jest-expo presettest-jest-setup
- Testing Library for componentstest-component-testing
- Error boundariestest-error-boundary
- Maestro E2E testingtest-e2e-maestro
Code Templates
Production-ready templates are available in
assets/templates/:
| Template | Description |
|---|---|
| Bottom tab navigator with icons |
| Root layout with protected routes |
| List with FlashList, refresh, states |
| Detail screen with param handling |
| Form with validation, keyboard handling |
| Auth context with SecureStore |
| Error boundary component |
How to Use
Read individual reference files for detailed explanations and code examples:
- Section definitions - Category structure and impact levels
- Rule template - Template for adding new rules
Full Compiled Document
For a single comprehensive document with all rules, see AGENTS.md.
Reference Files
| File | Description |
|---|---|
| AGENTS.md | Complete compiled guide with all rules |
| references/_sections.md | Category definitions and ordering |
| assets/templates/ | Production-ready code templates |
| metadata.json | Version and reference information |