# React Native & Expo Best Practices (2026): Router, UI & Agent Skills

- **Topic**: React Native & Expo
- **Canonical URL**: https://builderthread.dev/skill/for/react-native
- **Parent Hub**: https://builderthread.dev/skill.md
- **Last Verified**: 2026-11-21

Web React habits break native mobile apps through unvirtualized lists, missing safe areas, and insecure token storage. Follow the Expo and React Native checklist below or inspect the official Expo, Callstack, HeroUI, and Uniwind SKILL.md repos on GitHub.

---

## Core React Native & Expo Best Practices Checklist

### 1. Use Expo Router file-based navigation with typed routes

Enable typedRoutes in app.json and keep navigation state inside app/ layouts instead of mixing Expo Router with manual React Navigation containers.

- **Avoid**: `navigation.navigate("Details", { id })  // untyped string route`
- **Prefer**: `router.push({ pathname: "/item/[id]", params: { id } })`

### 2. Render large lists with FlashList or FlatList, never ScrollView.map

Virtualize feeds and catalogs with stable keyExtractor functions so memory stays flat and 60fps scrolling holds on low-end Android phones.

- **Avoid**: `<ScrollView>{items.map((item) => <Row key={item.id} item={item} />)}</ScrollView>`
- **Prefer**: `<FlatList data={items} keyExtractor={(i) => i.id} renderItem={renderRow} />`

### 3. Store auth tokens in expo-secure-store, never AsyncStorage

Keep session tokens and refresh keys in iOS Keychain and Android Keystore via expo-secure-store instead of plaintext AsyncStorage.

- **Avoid**: `await AsyncStorage.setItem("token", jwt);`
- **Prefer**: `await SecureStore.setItemAsync("session_token", jwt);`

### 4. Respect safe areas and native keyboard behavior on every screen

Wrap screens with react-native-safe-area-context and handle keyboard avoidance so inputs and tab bars never clip under notches or home indicators.

- **Avoid**: `<View style={{ paddingTop: 40 }}><TextInput /></View>`
- **Prefer**: `<SafeAreaView edges={["top", "bottom"]}><KeyboardAvoidingView>...</KeyboardAvoidingView></SafeAreaView>`

### 5. Animate on the UI thread with Reanimated worklets

Drive gestures and transitions with react-native-reanimated shared values instead of JS-thread Animated loops that drop frames during fetches.

- **Avoid**: `Animated.timing(val, { toValue: 1, useNativeDriver: false })`
- **Prefer**: `const offset = useSharedValue(0); const style = useAnimatedStyle(() => ({ transform: [{ translateY: offset.value }] }));`

### 6. Ship JS fixes with EAS Update and match runtimeVersion policies

Configure runtimeVersion in app.json before enabling EAS Update so over-the-air JavaScript bundles never crash older native binaries.

- **Avoid**: `Manual OTA push without matching native SDK/runtimeVersion`
- **Prefer**: `"runtimeVersion": { "policy": "appVersion" } + eas update --branch production`

---

## Verified Skills for React Native & Expo (7)

| Skill | Publisher | License | Stars | GitHub Source | Install Command |
|---|---|---|---|---|---|
| [heroui-native](https://builderthread.dev/skill/heroui-inc/heroui/heroui-native.md) | HeroUI | Apache-2.0 | 31,275 | [GitHub](https://github.com/heroui-inc/heroui) | `npx skills add heroui-inc/heroui --skill heroui-native` |
| [expo-router](https://builderthread.dev/skill/expo/skills/expo-router.md) | Expo | MIT | 4,203 | [GitHub](https://github.com/expo/skills/tree/main/plugins/expo/skills/expo-router) | `npx skills add expo/skills --skill expo-router` |
| [expo-native-ui](https://builderthread.dev/skill/expo/skills/expo-native-ui.md) | Expo | MIT | 4,203 | [GitHub](https://github.com/expo/skills/tree/main/plugins/expo/skills/expo-native-ui) | `npx skills add expo/skills --skill expo-native-ui` |
| [expo-data-fetching](https://builderthread.dev/skill/expo/skills/expo-data-fetching.md) | Expo | MIT | 4,203 | [GitHub](https://github.com/expo/skills/tree/main/plugins/expo/skills/expo-data-fetching) | `npx skills add expo/skills --skill expo-data-fetching` |
| [eas-update](https://builderthread.dev/skill/expo/skills/eas-update.md) | Expo | MIT | 4,203 | [GitHub](https://github.com/expo/skills/tree/main/plugins/expo/skills/eas-update) | `npx skills add expo/skills --skill eas-update` |
| [uniwind](https://builderthread.dev/skill/uni-stack/uniwind/uniwind.md) | Uniwind | MIT | 1,756 | [GitHub](https://github.com/uni-stack/uniwind) | `npx skills add uni-stack/uniwind --skill uniwind` |
| [react-native-best-practices](https://builderthread.dev/skill/callstackincubator/agent-skills/react-native-best-practices.md) | Callstack | MIT | 1,715 | [GitHub](https://github.com/callstackincubator/agent-skills/tree/main/skills/react-native-best-practices) | `npx skills add callstackincubator/agent-skills --skill react-native-best-practices` |

---

## Frequently Asked Questions

### What are the best official agent skills for Expo and React Native?

Expo maintains official skills in expo/skills (expo-router, expo-native-ui, expo-data-fetching, eas-update) and Callstack maintains callstackincubator/agent-skills (react-native-best-practices) under the MIT license.

### Why should mobile coding agents avoid web React skills?

Web React skills assume DOM primitives (div, CSS hover, window, localStorage) that fail on iOS and Android. Dedicated Expo and React Native skills enforce native views, safe areas, SecureStore, and UI-thread animations.

### Do these skills support Expo SDK 52+ and the New Architecture?

Yes. Official Expo and Callstack skills target modern Expo Router, New Architecture (Fabric and TurboModules), and EAS build and update workflows.

---

## Related Skill Guides

- [TypeScript](https://builderthread.dev/skill/for/typescript.md) ([Web](https://builderthread.dev/skill/for/typescript)): TypeScript Best Practices (2026): Strict Types & Agent Skills
- [UI & Design](https://builderthread.dev/skill/for/design.md) ([Web](https://builderthread.dev/skill/for/design)): Best Agent Skills for Frontend UI, shadcn/ui & Design Systems
- [Hono API](https://builderthread.dev/skill/for/hono.md) ([Web](https://builderthread.dev/skill/for/hono)): Hono API Best Practices (2026): Typed Routes, RPC & Agent Skills
- [Testing](https://builderthread.dev/skill/for/testing.md) ([Web](https://builderthread.dev/skill/for/testing)): Best Agent Skills for Automated Testing & Playwright CLI

---

## Ship With a Private Starter Repo, Living PRD & MCP Tasks

Builderthread generates a private Expo Router mobile repo with Uniwind styling, auth, account deletion, Hono API, living PRD, and MCP tasks for Claude Code or Cursor.

- Supported languages: Rust, TypeScript, React Native (Expo), Python
- Starter stacks: Next.js SaaS, Hono API, FastAPI AI, Expo mobile, Tauri Rust desktop, WXT Chrome extension
- Start now: https://builderthread.dev/auth/signup
