{"data":{"slug":"discovered-979a19a9c3b37ee449232412e1c42d05d6991e3562e863fc","title":"React Native Expert","summary":"Builds, optimizes, and debugs cross-platform mobile applications with React Native and Expo. Implements navigation hierarchies (tabs, stacks, drawers), configures native modules, optimizes FlatList rendering with memo and useCallback, and handles platform-specific code for iOS and Android. Use when building a React Native or Expo mobile app, setting up navigation, integrating native modules, improving scroll performance, handling SafeArea or keyboard input, or configuring Expo SDK projects.","url":"https:\/\/skillshunter.net\/skills\/discovered-979a19a9c3b37ee449232412e1c42d05d6991e3562e863fc","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-979a19a9c3b37ee449232412e1c42d05d6991e3562e863fc","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-979a19a9c3b37ee449232412e1c42d05d6991e3562e863fc.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-979a19a9c3b37ee449232412e1c42d05d6991e3562e863fc\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Run `npx expo doctor` to verify environment and SDK compatibility before proceeding. Ensure TypeScript is configured and resolve any Metro bundler errors by clearing the cache with `npx expo start --clear`.","instructions":"---\nname: react-native-expert\ndescription: Builds, optimizes, and debugs cross-platform mobile applications with React Native and Expo. Implements navigation hierarchies (tabs, stacks, drawers), configures native modules, optimizes FlatList rendering with memo and useCallback, and handles platform-specific code for iOS and Android. Use when building a React Native or Expo mobile app, setting up navigation, integrating native modules, improving scroll performance, handling SafeArea or keyboard input, or configuring Expo SDK projects.\nlicense: MIT\nmetadata:\n  author: https:\/\/github.com\/Jeffallan\n  company: https:\/\/synergetic.solutions\n  version: \"1.1.0\"\n  domain: frontend\n  triggers: React Native, Expo, mobile app, iOS, Android, cross-platform, native module\n  role: specialist\n  scope: implementation\n  output-format: code\n  related-skills: react-expert, flutter-expert, test-master, firebase-expert\n---\n\n# React Native Expert\n\nSenior mobile engineer building production-ready cross-platform applications with React Native and Expo.\n\n## Core Workflow\n\n1. **Setup** \u2014 Expo Router or React Navigation, TypeScript config \u2192 _run `npx expo doctor` to verify environment and SDK compatibility; fix any reported issues before proceeding_\n2. **Structure** \u2014 Feature-based organization\n3. **Implement** \u2014 Components with platform handling \u2192 _verify on iOS simulator and Android emulator; check Metro bundler output for errors before moving on_\n4. **Optimize** \u2014 FlatList, images, memory \u2192 _profile with Flipper or React DevTools_\n5. **Test** \u2014 Both platforms, real devices\n\n### Error Recovery\n- **Metro bundler errors** \u2192 clear cache with `npx expo start --clear`, then restart\n- **iOS build fails** \u2192 check Xcode logs \u2192 resolve native dependency or provisioning issue \u2192 rebuild with `npx expo run:ios`\n- **Android build fails** \u2192 check `adb logcat` or Gradle output \u2192 resolve SDK\/NDK version mismatch \u2192 rebuild with `npx expo run:android`\n- **Native module not found** \u2192 run `npx expo install <module>` to ensure compatible version, then rebuild native layers\n\n## Reference Guide\n\nLoad detailed guidance based on context:\n\n| Topic | Reference | Load When |\n|-------|-----------|-----------|\n| Navigation | `references\/expo-router.md` | Expo Router, tabs, stacks, deep linking |\n| Platform | `references\/platform-handling.md` | iOS\/Android code, SafeArea, keyboard |\n| Lists | `references\/list-optimization.md` | FlatList, performance, memo |\n| Storage | `references\/storage-hooks.md` | AsyncStorage, MMKV, persistence |\n| Structure | `references\/project-structure.md` | Project setup, architecture |\n\n## Constraints\n\n### MUST DO\n- Use FlatList\/SectionList for lists (not ScrollView)\n- Implement memo + useCallback for list items\n- Handle SafeAreaView for notches\n- Test on both iOS and Android real devices\n- Use KeyboardAvoidingView for forms\n- Handle Android back button in navigation\n\n### MUST NOT DO\n- Use ScrollView for large lists\n- Use inline styles extensively (creates new objects)\n- Hardcode dimensions (use Dimensions API or flex)\n- Ignore memory leaks from subscriptions\n- Skip platform-specific testing\n- Use waitFor\/setTimeout for animations (use Reanimated)\n\n## Code Examples\n\n### Optimized FlatList with memo + useCallback\n\n```tsx\nimport React, { memo, useCallback } from 'react';\nimport { FlatList, View, Text, StyleSheet } from 'react-native';\n\ntype Item = { id: string; title: string };\n\nconst ListItem = memo(({ title, onPress }: { title: string; onPress: () => void }) => (\n  <View style={styles.item}>\n    <Text onPress={onPress}>{title}<\/Text>\n  <\/View>\n));\n\nexport function ItemList({ data }: { data: Item[] }) {\n  const handlePress = useCallback((id: string) => {\n    console.log('pressed', id);\n  }, []);\n\n  const renderItem = useCallback(\n    ({ item }: { item: Item }) => (\n      <ListItem title={item.title} onPress={() => handlePress(item.id)} \/>\n    ),\n    [handlePress]\n  );\n\n  return (\n    <FlatList\n      data={data}\n      keyExtractor={(item) => item.id}\n      renderItem={renderItem}\n      removeClippedSubviews\n      maxToRenderPerBatch={10}\n      windowSize={5}\n    \/>\n  );\n}\n\nconst styles = StyleSheet.create({\n  item: { padding: 16, borderBottomWidth: StyleSheet.hairlineWidth },\n});\n```\n\n### KeyboardAvoidingView Form\n\n```tsx\nimport React from 'react';\nimport {\n  KeyboardAvoidingView,\n  Platform,\n  ScrollView,\n  TextInput,\n  StyleSheet,\n  SafeAreaView,\n} from 'react-native';\n\nexport function LoginForm() {\n  return (\n    <SafeAreaView style={styles.safe}>\n      <KeyboardAvoidingView\n        style={styles.flex}\n        behavior={Platform.OS === 'ios' ? 'padding' : 'height'}\n      >\n        <ScrollView contentContainerStyle={styles.content} keyboardShouldPersistTaps=\"handled\">\n          <TextInput style={styles.input} placeholder=\"Email\" autoCapitalize=\"none\" \/>\n          <TextInput style={styles.input} placeholder=\"Password\" secureTextEntry \/>\n        <\/ScrollView>\n      <\/KeyboardAvoidingView>\n    <\/SafeAreaView>\n  );\n}\n\nconst styles = StyleSheet.create({\n  safe: { flex: 1 },\n  flex: { flex: 1 },\n  content: { padding: 16, gap: 12 },\n  input: { borderWidth: 1, borderRadius: 8, padding: 12, fontSize: 16 },\n});\n```\n\n### Platform-Specific Component\n\n```tsx\nimport { Platform, StyleSheet, View, Text } from 'react-native';\n\nexport function StatusChip({ label }: { label: string }) {\n  return (\n    <View style={styles.chip}>\n      <Text style={styles.label}>{label}<\/Text>\n    <\/View>\n  );\n}\n\nconst styles = StyleSheet.create({\n  chip: {\n    paddingHorizontal: 12,\n    paddingVertical: 4,\n    borderRadius: 999,\n    backgroundColor: '#0a7ea4',\n    \/\/ Platform-specific shadow\n    ...Platform.select({\n      ios: { shadowColor: '#000', shadowOffset: { width: 0, height: 2 }, shadowOpacity: 0.2, shadowRadius: 4 },\n      android: { elevation: 3 },\n    }),\n  },\n  label: { color: '#fff', fontSize: 13, fontWeight: '600' },\n});\n```\n\n## Output Format\n\nWhen implementing React Native features, deliver:\n1. **Component code** \u2014 TypeScript, with prop types defined\n2. **Platform handling** \u2014 `Platform.select` or `.ios.tsx` \/ `.android.tsx` splits as needed\n3. **Navigation integration** \u2014 route params typed, back-button handling included\n4. **Performance notes** \u2014 memo boundaries, key extractor strategy, image caching\n\n## Knowledge Reference\n\nReact Native 0.73+, Expo SDK 50+, Expo Router, React Navigation 7, Reanimated 3, Gesture Handler, AsyncStorage, MMKV, React Query, Zustand\n\nMaintained by [@jeffallan](https:\/\/github.com\/jeffallan), Principal Consultant at [Synergetic Solutions](https:\/\/synergetic.solutions)\n\n[Documentation](https:\/\/jeffallan.github.io\/claude-skills\/skills\/frontend\/react-native-expert\/)\n","use_cases":["Setting up navigation with tabs, stacks, or drawers","Optimizing FlatList performance with memo and useCallback","Handling SafeAreaView for notches and KeyboardAvoidingView for forms","Testing on both iOS and Android real devices","Configuring native modules and Expo SDK projects"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/Jeffallan\/claude-skills\/blob\/a8be463010e2ca23afe00ea00773aea7128e8971\/plugin\/skills\/react-native-expert\/SKILL.md","source_commit":"a8be463010e2ca23afe00ea00773aea7128e8971","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:47:51.000000Z","updated_at":"2026-11-29T10:53:27.000000Z","seo_title":"React Native Expert - Cross-Platform Mobile App Development","seo_description":"Expert in React Native and Expo for cross-platform mobile app development, with a focus on performance, navigation, and platform-specific code.","seo_keywords":["React Native","Expo","mobile app","iOS","Android","cross-platform","navigation","FlatList optimization"]}}