React native

From travisjneuman/.claude · View interactive version

React native is an AI agent skill from the GitHub repository travisjneuman/.claude. Cross-platform mobile development with React Native and Expo. Use when building iOS/Android apps with JavaScript/TypeScript, implementing native features, or optimizing mobile performance.

How to use this skill

Skill file

React Native Development

Build native iOS and Android apps with React Native and Expo.

Framework Options

| Framework | Use When |

| ------------------------ | ----------------------------------------------- |

| Expo (Recommended) | Most apps, faster development, managed workflow |

| React Native CLI | Need custom native modules, brownfield apps |

| Expo with Dev Client | Best of both - Expo DX with native modules |


Project Setup

Expo (Recommended)

npx create-expo-app@latest my-app
cd my-app
npx expo start

React Native CLI

npx @react-native-community/cli init MyApp
cd MyApp
npx react-native run-ios  # or run-android

Core Components

Basic Structure

import { View, Text, StyleSheet, ScrollView, SafeAreaView } from "react-native";

export default function App() {
  return (
    <SafeAreaView style={styles.container}>
      <ScrollView contentContainerStyle={styles.content}>
        <Text style={styles.title}>Hello World</Text>
      </ScrollView>
    </SafeAreaView>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: "#fff",
  },
  content: {
    padding: 16,
  },
  title: {
    fontSize: 24,
    fontWeight: "bold",
  },
});

Common Components

import {
  View,
  Text,
  Image,
  TextInput,
  TouchableOpacity,
  Pressable,
  FlatList,
  ActivityIndicator,
  Modal,
  Switch,
} from 'react-native';

// Touchable with feedback
<Pressable
  onPress={handlePress}
  style={({ pressed }) => [
    styles.button,
    pressed && styles.buttonPressed,
  ]}
>
  <Text>Press Me</Text>
</Pressable>

// Text Input
<TextInput
  value={text}
  onChangeText={setText}
  placeholder="Enter text"
  style={styles.input}
  autoCapitalize="none"
  keyboardType="email-address"
  returnKeyType="done"
  onSubmitEditing={handleSubmit}
/>

// Image
<Image
  source={{ uri: 'https://example.com/image.jpg' }}
  style={{ width: 100, height: 100 }}
  resizeMode="cover"
/>

Reference files

Detailed material is in separate files so this overview stays short. Read only the file whose topic matches the task; each one is self-contained. Paths are relative to the folder that holds this SKILL.md (in the full toolkit install, ~/.claude/skills/react-native/).

| Topic | File | Covers |

| --- | --- | --- |

| Navigation | CODE0 | React Navigation Setup; Stack Navigation; Tab Navigation |

| State Management | CODE0 | Zustand (Recommended); React Query |

| Styling | CODE0 | StyleSheet; NativeWind (Tailwind for RN) |

| Native Features | CODE0 | Camera (Expo); Push Notifications (Expo); Location |

| Performance | CODE0 | FlatList Optimization; Image Optimization |

| Testing | CODE0 | Jest + React Native Testing Library |

| App Store Deployment | CODE0 | Expo EAS Build; app.json Configuration |

| Best Practices | CODE0 | DO:; DON'T: |

| New Architecture (React Native 0.76+) | CODE0 | Core Components; Enabling New Architecture; TurboModules (Type-Safe Native Modules); Fabric Components (New Renderer) |

| Expo Router (File-Based Routing) | CODE0 | File Structure; Layout and Navigation |

| EAS Update (OTA Updates) | CODE0 | 29 lines |

| Hermes Engine | CODE0 | 19 lines |

| Expo SDK 52+ Features | CODE0 | 12 lines |

React 19 Compatibility

React Native supports React 19 features when using New Architecture:


Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.