react-native-best-practices
Installation
SKILL.md
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 />.
Related skills
More from dokhacgiakhoa/antigravity-ide
ui-ux-pro-max-skill
Premium design and micro-interactions toolkit.
89notion-mcp
Official Notion Model Context Protocol Server for workspace interaction.
33filesystem-mcp
Official Filesystem Model Context Protocol Server for local file operations.
24puppeteer-mcp
Official Puppeteer Model Context Protocol Server for browser automation.
15penetration-tester-master
Ultimate Offensive Security Master Skill.
14postgres-mcp
Official PostgreSQL Model Context Protocol Server for database interaction.
14