[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F1KBTV5C5ESPQPRE08PG2P":3,"skill-same:01M6F1KBTV5C5ESPQPRE08PG2P":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6F1KBTV5C5ESPQPRE08PG2P","react-native-design",null,"Master React Native styling, navigation, and Reanimated animations for cross-platform mobile development. Use when building React Native apps, implementing navigation patterns, or creating performant animations.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fwshobson\u002Freact-native-design\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"react","native","react native design","react native","design","use","styling","mobile development","navigation","mobile","master","development","patterns","cross-platform","native apps","platform","apps","react native styling","2026-11-10 10:12:30",false,"---\nname: react-native-design\ndescription: Master React Native styling, navigation, and Reanimated animations for cross-platform mobile development. Use when building React Native apps, implementing navigation patterns, or creating performant animations.\n---\n\n# React Native Design\n\nMaster React Native styling patterns, React Navigation, and Reanimated 3 to build performant, cross-platform mobile applications with native-quality user experiences.\n\n## When to Use This Skill\n\n- Building cross-platform mobile apps with React Native\n- Implementing navigation with React Navigation 6+\n- Creating performant animations with Reanimated 3\n- Styling components with StyleSheet and styled-components\n- Building responsive layouts for different screen sizes\n- Implementing platform-specific designs (iOS\u002FAndroid)\n- Creating gesture-driven interactions with Gesture Handler\n- Optimizing React Native performance\n\n## Core Concepts\n\n### 1. StyleSheet and Styling\n\n**Basic StyleSheet:**\n\n```typescript\nimport { StyleSheet, View, Text } from 'react-native';\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    padding: 16,\n    backgroundColor: '#ffffff',\n  },\n  title: {\n    fontSize: 24,\n    fontWeight: '600',\n    color: '#1a1a1a',\n    marginBottom: 8,\n  },\n  subtitle: {\n    fontSize: 16,\n    color: '#666666',\n    lineHeight: 24,\n  },\n});\n\nfunction Card() {\n  return (\n    \u003CView style={styles.container}>\n      \u003CText style={styles.title}>Title\u003C\u002FText>\n      \u003CText style={styles.subtitle}>Subtitle text\u003C\u002FText>\n    \u003C\u002FView>\n  );\n}\n```\n\n**Dynamic Styles:**\n\n```typescript\ninterface CardProps {\n  variant: 'primary' | 'secondary';\n  disabled?: boolean;\n}\n\nfunction Card({ variant, disabled }: CardProps) {\n  return (\n    \u003CView style={[\n      styles.card,\n      variant === 'primary' ? styles.primary : styles.secondary,\n      disabled && styles.disabled,\n    ]}>\n      \u003CText style={styles.text}>Content\u003C\u002FText>\n    \u003C\u002FView>\n  );\n}\n\nconst styles = StyleSheet.create({\n  card: {\n    padding: 16,\n    borderRadius: 12,\n  },\n  primary: {\n    backgroundColor: '#6366f1',\n  },\n  secondary: {\n    backgroundColor: '#f3f4f6',\n    borderWidth: 1,\n    borderColor: '#e5e7eb',\n  },\n  disabled: {\n    opacity: 0.5,\n  },\n  text: {\n    fontSize: 16,\n  },\n});\n```\n\n### 2. Flexbox Layout\n\n**Row and Column Layouts:**\n\n```typescript\nconst styles = StyleSheet.create({\n  \u002F\u002F Vertical stack (column)\n  column: {\n    flexDirection: \"column\",\n    gap: 12,\n  },\n  \u002F\u002F Horizontal stack (row)\n  row: {\n    flexDirection: \"row\",\n    alignItems: \"center\",\n    gap: 8,\n  },\n  \u002F\u002F Space between items\n  spaceBetween: {\n    flexDirection: \"row\",\n    justifyContent: \"space-between\",\n    alignItems: \"center\",\n  },\n  \u002F\u002F Centered content\n  centered: {\n    flex: 1,\n    justifyContent: \"center\",\n    alignItems: \"center\",\n  },\n  \u002F\u002F Fill remaining space\n  fill: {\n    flex: 1,\n  },\n});\n```\n\n### 3. React Navigation Setup\n\n**Stack Navigator:**\n\n```typescript\nimport { NavigationContainer } from '@react-navigation\u002Fnative';\nimport { createNativeStackNavigator } from '@react-navigation\u002Fnative-stack';\n\ntype RootStackParamList = {\n  Home: undefined;\n  Detail: { itemId: string };\n  Settings: undefined;\n};\n\nconst Stack = createNativeStackNavigator\u003CRootStackParamList>();\n\nfunction AppNavigator() {\n  return (\n    \u003CNavigationContainer>\n      \u003CStack.Navigator\n        initialRouteName=\"Home\"\n        screenOptions={{\n          headerStyle: { backgroundColor: '#6366f1' },\n          headerTintColor: '#ffffff',\n          headerTitleStyle: { fontWeight: '600' },\n        }}\n      >\n        \u003CStack.Screen\n          name=\"Home\"\n          component={HomeScreen}\n          options={{ title: 'Home' }}\n        \u002F>\n        \u003CStack.Screen\n          name=\"Detail\"\n          component={DetailScreen}\n          options={({ route }) => ({\n            title: `Item ${route.params.itemId}`,\n          })}\n        \u002F>\n        \u003CStack.Screen name=\"Settings\" component={SettingsScreen} \u002F>\n      \u003C\u002FStack.Navigator>\n    \u003C\u002FNavigationContainer>\n  );\n}\n```\n\n**Tab Navigator:**\n\n```typescript\nimport { createBottomTabNavigator } from '@react-navigation\u002Fbottom-tabs';\nimport { Ionicons } from '@expo\u002Fvector-icons';\n\ntype TabParamList = {\n  Home: undefined;\n  Search: undefined;\n  Profile: undefined;\n};\n\nconst Tab = createBottomTabNavigator\u003CTabParamList>();\n\nfunction TabNavigator() {\n  return (\n    \u003CTab.Navigator\n      screenOptions={({ route }) => ({\n        tabBarIcon: ({ focused, color, size }) => {\n          const icons: Record\u003Cstring, keyof typeof Ionicons.glyphMap> = {\n            Home: focused ? 'home' : 'home-outline',\n            Search: focused ? 'search' : 'search-outline',\n            Profile: focused ? 'person' : 'person-outline',\n          };\n          return \u003CIonicons name={icons[route.name]} size={size} color={color} \u002F>;\n        },\n        tabBarActiveTintColor: '#6366f1',\n        tabBarInactiveTintColor: '#9ca3af',\n      })}\n    >\n      \u003CTab.Screen name=\"Home\" component={HomeScreen} \u002F>\n      \u003CTab.Screen name=\"Search\" component={SearchScreen} \u002F>\n      \u003CTab.Screen name=\"Profile\" component={ProfileScreen} \u002F>\n    \u003C\u002FTab.Navigator>\n  );\n}\n```\n\n### 4. Reanimated 3 Basics\n\n**Animated Values:**\n\n```typescript\nimport Animated, {\n  useSharedValue,\n  useAnimatedStyle,\n  withSpring,\n  withTiming,\n} from 'react-native-reanimated';\n\nfunction AnimatedBox() {\n  const scale = useSharedValue(1);\n  const opacity = useSharedValue(1);\n\n  const animatedStyle = useAnimatedStyle(() => ({\n    transform: [{ scale: scale.value }],\n    opacity: opacity.value,\n  }));\n\n  const handlePress = () => {\n    scale.value = withSpring(1.2, {}, () => {\n      scale.value = withSpring(1);\n    });\n  };\n\n  return (\n    \u003CPressable onPress={handlePress}>\n      \u003CAnimated.View style={[styles.box, animatedStyle]} \u002F>\n    \u003C\u002FPressable>\n  );\n}\n```\n\n**Gesture Handler Integration:**\n\n```typescript\nimport { Gesture, GestureDetector } from 'react-native-gesture-handler';\nimport Animated, {\n  useSharedValue,\n  useAnimatedStyle,\n  withSpring,\n} from 'react-native-reanimated';\n\nfunction DraggableCard() {\n  const translateX = useSharedValue(0);\n  const translateY = useSharedValue(0);\n\n  const gesture = Gesture.Pan()\n    .onUpdate((event) => {\n      translateX.value = event.translationX;\n      translateY.value = event.translationY;\n    })\n    .onEnd(() => {\n      translateX.value = withSpring(0);\n      translateY.value = withSpring(0);\n    });\n\n  const animatedStyle = useAnimatedStyle(() => ({\n    transform: [\n      { translateX: translateX.value },\n      { translateY: translateY.value },\n    ],\n  }));\n\n  return (\n    \u003CGestureDetector gesture={gesture}>\n      \u003CAnimated.View style={[styles.card, animatedStyle]}>\n        \u003CText>Drag me!\u003C\u002FText>\n      \u003C\u002FAnimated.View>\n    \u003C\u002FGestureDetector>\n  );\n}\n```\n\n### 5. Platform-Specific Styling\n\n```typescript\nimport { Platform, StyleSheet } from \"react-native\";\n\nconst styles = StyleSheet.create({\n  container: {\n    padding: 16,\n    ...Platform.select({\n      ios: {\n        shadowColor: \"#000\",\n        shadowOffset: { width: 0, height: 2 },\n        shadowOpacity: 0.1,\n        shadowRadius: 4,\n      },\n      android: {\n        elevation: 4,\n      },\n    }),\n  },\n  text: {\n    fontFamily: Platform.OS === \"ios\" ? \"SF Pro Text\" : \"Roboto\",\n    fontSize: 16,\n  },\n});\n\n\u002F\u002F Platform-specific components\nimport { Platform } from \"react-native\";\nconst StatusBarHeight = Platform.OS === \"ios\" ? 44 : 0;\n```\n\n## Quick Start Component\n\n```typescript\nimport React from 'react';\nimport {\n  View,\n  Text,\n  StyleSheet,\n  Pressable,\n  Image,\n} from 'react-native';\nimport Animated, {\n  useSharedValue,\n  useAnimatedStyle,\n  withSpring,\n} from 'react-native-reanimated';\n\ninterface ItemCardProps {\n  title: string;\n  subtitle: string;\n  imageUrl: string;\n  onPress: () => void;\n}\n\nconst AnimatedPressable = Animated.createAnimatedComponent(Pressable);\n\nexport function ItemCard({ title, subtitle, imageUrl, onPress }: ItemCardProps) {\n  const scale = useSharedValue(1);\n\n  const animatedStyle = useAnimatedStyle(() => ({\n    transform: [{ scale: scale.value }],\n  }));\n\n  return (\n    \u003CAnimatedPressable\n      style={[styles.card, animatedStyle]}\n      onPress={onPress}\n      onPressIn={() => { scale.value = withSpring(0.97); }}\n      onPressOut={() => { scale.value = withSpring(1); }}\n    >\n      \u003CImage source={{ uri: imageUrl }} style={styles.image} \u002F>\n      \u003CView style={styles.content}>\n        \u003CText style={styles.title} numberOfLines={1}>\n          {title}\n        \u003C\u002FText>\n        \u003CText style={styles.subtitle} numberOfLines={2}>\n          {subtitle}\n        \u003C\u002FText>\n      \u003C\u002FView>\n    \u003C\u002FAnimatedPressable>\n  );\n}\n\nconst styles = StyleSheet.create({\n  card: {\n    backgroundColor: '#ffffff',\n    borderRadius: 16,\n    overflow: 'hidden',\n    shadowColor: '#000',\n    shadowOffset: { width: 0, height: 2 },\n    shadowOpacity: 0.1,\n    shadowRadius: 8,\n    elevation: 4,\n  },\n  image: {\n    width: '100%',\n    height: 160,\n    backgroundColor: '#f3f4f6',\n  },\n  content: {\n    padding: 16,\n    gap: 4,\n  },\n  title: {\n    fontSize: 18,\n    fontWeight: '600',\n    color: '#1f2937',\n  },\n  subtitle: {\n    fontSize: 14,\n    color: '#6b7280',\n    lineHeight: 20,\n  },\n});\n```\n\n## Best Practices\n\n1. **Use TypeScript**: Define navigation and prop types for type safety\n2. **Memoize Components**: Use `React.memo` and `useCallback` to prevent unnecessary rerenders\n3. **Run Animations on UI Thread**: Use Reanimated worklets for 60fps animations\n4. **Avoid Inline Styles**: Use StyleSheet.create for performance\n5. **Handle Safe Areas**: Use `SafeAreaView` or `useSafeAreaInsets`\n6. **Test on Real Devices**: Simulator\u002Femulator performance differs from real devices\n7. **Use FlatList for Lists**: Never use ScrollView with map for long lists\n8. **Platform-Specific Code**: Use Platform.select for iOS\u002FAndroid differences\n\n## Common Issues\n\n- **Gesture Conflicts**: Wrap gestures with `GestureDetector` and use `simultaneousHandlers`\n- **Navigation Type Errors**: Define `ParamList` types for all navigators\n- **Animation Jank**: Move animations to UI thread with `runOnUI` worklets\n- **Memory Leaks**: Cancel animations and cleanup in useEffect\n- **Font Loading**: Use `expo-font` or `react-native-asset` for custom fonts\n- **Safe Area Issues**: Test on notched devices (iPhone, Android with cutouts)\n\n## Resources\n\n- [React Native Documentation](https:\u002F\u002Freactnative.dev\u002F)\n- [React Navigation](https:\u002F\u002Freactnavigation.org\u002F)\n- [Reanimated Documentation](https:\u002F\u002Fdocs.swmansion.com\u002Freact-native-reanimated\u002F)\n- [Gesture Handler](https:\u002F\u002Fdocs.swmansion.com\u002Freact-native-gesture-handler\u002F)\n- [Expo Documentation](https:\u002F\u002Fdocs.expo.dev\u002F)\n","# React Native Design\n\nMaster React Native styling patterns, React Navigation, and Reanimated 3 to build performant, cross-platform mobile applications with native-quality user experiences.\n\n## When to Use This Skill\n\n- Building cross-platform mobile apps with React Native\n- Implementing navigation with React Navigation 6+\n- Creating performant animations with Reanimated 3\n- Styling components with StyleSheet and styled-components\n- Building responsive layouts for different screen sizes\n- Implementing platform-specific designs (iOS\u002FAndroid)\n- Creating gesture-driven interactions with Gesture Handler\n- Optimizing React Native performance\n\n## Core Concepts\n\n### 1. StyleSheet and Styling\n\n**Basic StyleSheet:**\n\n```typescript\nimport { StyleSheet, View, Text } from 'react-native';\n\nconst styles = StyleSheet.create({\n  container: {\n    flex: 1,\n    padding: 16,\n    backgroundColor: '#ffffff',\n  },\n  title: {\n    fontSize: 24,\n    fontWeight: '600',\n    color: '#1a1a1a',\n    marginBottom: 8,\n  },\n  subtitle: {\n    fontSize: 16,\n    color: '#666666',\n    lineHeight: 24,\n  },\n});\n\nfunction Card() {\n  return (\n    \u003CView style={styles.container}>\n      \u003CText style={styles.title}>Title\u003C\u002FText>\n      \u003CText style={styles.subtitle}>Subtitle text\u003C\u002FText>\n    \u003C\u002FView>\n  );\n}\n```\n\n**Dynamic Styles:**\n\n```typescript\ninterface CardProps {\n  variant: 'primary' | 'secondary';\n  disabled?: boolean;\n}\n\nfunction Card({ variant, disabled }: CardProps) {\n  return (\n    \u003CView style={[\n      styles.card,\n      variant === 'primary' ? styles.primary : styles.secondary,\n      disabled && styles.disabled,\n    ]}>\n      \u003CText style={styles.text}>Content\u003C\u002FText>\n    \u003C\u002FView>\n  );\n}\n\nconst styles = StyleSheet.create({\n  card: {\n    padding: 16,\n    borderRadius: 12,\n  },\n  primary: {\n    backgroundColor: '#6366f1',\n  },\n  secondary: {\n    backgroundColor: '#f3f4f6',\n    borderWidth: 1,\n    borderColor: '#e5e7eb',\n  },\n  disabled: {\n    opacity: 0.5,\n  },\n  text: {\n    fontSize: 16,\n  },\n});\n```\n\n### 2. Flexbox Layout\n\n**Row and Column Layouts:**\n\n```typescript\nconst styles = StyleSheet.create({\n  \u002F\u002F Vertical stack (column)\n  column: {\n    flexDirection: \"column\",\n    gap: 12,\n  },\n  \u002F\u002F Horizontal stack (row)\n  row: {\n    flexDirection: \"row\",\n    alignItems: \"center\",\n    gap: 8,\n  },\n  \u002F\u002F Space between items\n  spaceBetween: {\n    flexDirection: \"row\",\n    justifyContent: \"space-between\",\n    alignItems: \"center\",\n  },\n  \u002F\u002F Centered content\n  centered: {\n    flex: 1,\n    justifyContent: \"center\",\n    alignItems: \"center\",\n  },\n  \u002F\u002F Fill remaining space\n  fill: {\n    flex: 1,\n  },\n});\n```\n\n### 3. React Navigation Setup\n\n**Stack Navigator:**\n\n```typescript\nimport { NavigationContainer } from '@react-navigation\u002Fnative';\nimport { createNativeStackNavigator } from '@react-navigation\u002Fnative-stack';\n\ntype RootStackParamList = {\n  Home: undefined;\n  Detail: { itemId: string };\n  Settings: undefined;\n};\n\nconst Stack = createNativeStackNavigator\u003CRootStackParamList>();\n\nfunction AppNavigator() {\n  return (\n    \u003CNavigationContainer>\n      \u003CStack.Navigator\n        initialRouteName=\"Home\"\n        screenOptions={{\n          headerStyle: { backgroundColor: '#6366f1' },\n          headerTintColor: '#ffffff',\n          headerTitleStyle: { fontWeight: '600' },\n        }}\n      >\n        \u003CStack.Screen\n          name=\"Home\"\n          component={HomeScreen}\n          options={{ title: 'Home' }}\n        \u002F>\n        \u003CStack.Screen\n          name=\"Detail\"\n          component={DetailScreen}\n          options={({ route }) => ({\n            title: `Item ${route.params.itemId}`,\n          })}\n        \u002F>\n        \u003CStack.Screen name=\"Settings\" component={SettingsScreen} \u002F>\n      \u003C\u002FStack.Navigator>\n    \u003C\u002FNavigationContainer>\n  );\n}\n```\n\n**Tab Navigator:**\n\n```typescript\nimport { createBottomTabNavigator } from '@react-navigation\u002Fbottom-tabs';\nimport { Ionicons } from '@expo\u002Fvector-icons';\n\ntype TabParamList = {\n  Home: undefined;\n  Search: undefined;\n  Profile: undefined;\n};\n\nconst Tab = createBottomTabNavigator\u003CTabParamList>();\n\nfunction TabNavigator() {\n  return (\n    \u003CTab.Navigator\n      screenOptions={({ route }) => ({\n        tabBarIcon: ({ focused, color, size }) => {\n          const icons: Record\u003Cstring, keyof typeof Ionicons.glyphMap> = {\n            Home: focused ? 'home' : 'home-outline',\n            Search: focused ? 'search' : 'search-outline',\n            Profile: focused ? 'person' : 'person-outline',\n          };\n          return \u003CIonicons name={icons[route.name]} size={size} color={color} \u002F>;\n        },\n        tabBarActiveTintColor: '#6366f1',\n        tabBarInactiveTintColor: '#9ca3af',\n      })}\n    >\n      \u003CTab.Screen name=\"Home\" component={HomeScreen} \u002F>\n      \u003CTab.Screen name=\"Search\" component={SearchScreen} \u002F>\n      \u003CTab.Screen name=\"Profile\" component={ProfileScreen} \u002F>\n    \u003C\u002FTab.Navigator>\n  );\n}\n```\n\n### 4. Reanimated 3 Basics\n\n**Animated Values:**\n\n```typescript\nimport Animated, {\n  useSharedValue,\n  useAnimatedStyle,\n  withSpring,\n  withTiming,\n} from 'react-native-reanimated';\n\nfunction AnimatedBox() {\n  const scale = useSharedValue(1);\n  const opacity = useSharedValue(1);\n\n  const animatedStyle = useAnimatedStyle(() => ({\n    transform: [{ scale: scale.value }],\n    opacity: opacity.value,\n  }));\n\n  const handlePress = () => {\n    scale.value = withSpring(1.2, {}, () => {\n      scale.value = withSpring(1);\n    });\n  };\n\n  return (\n    \u003CPressable onPress={handlePress}>\n      \u003CAnimated.View style={[styles.box, animatedStyle]} \u002F>\n    \u003C\u002FPressable>\n  );\n}\n```\n\n**Gesture Handler Integration:**\n\n```typescript\nimport { Gesture, GestureDetector } from 'react-native-gesture-handler';\nimport Animated, {\n  useSharedValue,\n  useAnimatedStyle,\n  withSpring,\n} from 'react-native-reanimated';\n\nfunction DraggableCard() {\n  const translateX = useSharedValue(0);\n  const translateY = useSharedValue(0);\n\n  const gesture = Gesture.Pan()\n    .onUpdate((event) => {\n      translateX.value = event.translationX;\n      translateY.value = event.translationY;\n    })\n    .onEnd(() => {\n      translateX.value = withSpring(0);\n      translateY.value = withSpring(0);\n    });\n\n  const animatedStyle = useAnimatedStyle(() => ({\n    transform: [\n      { translateX: translateX.value },\n      { translateY: translateY.value },\n    ],\n  }));\n\n  return (\n    \u003CGestureDetector gesture={gesture}>\n      \u003CAnimated.View style={[styles.card, animatedStyle]}>\n        \u003CText>Drag me!\u003C\u002FText>\n      \u003C\u002FAnimated.View>\n    \u003C\u002FGestureDetector>\n  );\n}\n```\n\n### 5. Platform-Specific Styling\n\n```typescript\nimport { Platform, StyleSheet } from \"react-native\";\n\nconst styles = StyleSheet.create({\n  container: {\n    padding: 16,\n    ...Platform.select({\n      ios: {\n        shadowColor: \"#000\",\n        shadowOffset: { width: 0, height: 2 },\n        shadowOpacity: 0.1,\n        shadowRadius: 4,\n      },\n      android: {\n        elevation: 4,\n      },\n    }),\n  },\n  text: {\n    fontFamily: Platform.OS === \"ios\" ? \"SF Pro Text\" : \"Roboto\",\n    fontSize: 16,\n  },\n});\n\n\u002F\u002F Platform-specific components\nimport { Platform } from \"react-native\";\nconst StatusBarHeight = Platform.OS === \"ios\" ? 44 : 0;\n```\n\n## Quick Start Component\n\n```typescript\nimport React from 'react';\nimport {\n  View,\n  Text,\n  StyleSheet,\n  Pressable,\n  Image,\n} from 'react-native';\nimport Animated, {\n  useSharedValue,\n  useAnimatedStyle,\n  withSpring,\n} from 'react-native-reanimated';\n\ninterface ItemCardProps {\n  title: string;\n  subtitle: string;\n  imageUrl: string;\n  onPress: () => void;\n}\n\nconst AnimatedPressable = Animated.createAnimatedComponent(Pressable);\n\nexport function ItemCard({ title, subtitle, imageUrl, onPress }: ItemCardProps) {\n  const scale = useSharedValue(1);\n\n  const animatedStyle = useAnimatedStyle(() => ({\n    transform: [{ scale: scale.value }],\n  }));\n\n  return (\n    \u003CAnimatedPressable\n      style={[styles.card, animatedStyle]}\n      onPress={onPress}\n      onPressIn={() => { scale.value = withSpring(0.97); }}\n      onPressOut={() => { scale.value = withSpring(1); }}\n    >\n      \u003CImage source={{ uri: imageUrl }} style={styles.image} \u002F>\n      \u003CView style={styles.content}>\n        \u003CText style={styles.title} numberOfLines={1}>\n          {title}\n        \u003C\u002FText>\n        \u003CText style={styles.subtitle} numberOfLines={2}>\n          {subtitle}\n        \u003C\u002FText>\n      \u003C\u002FView>\n    \u003C\u002FAnimatedPressable>\n  );\n}\n\nconst styles = StyleSheet.create({\n  card: {\n    backgroundColor: '#ffffff',\n    borderRadius: 16,\n    overflow: 'hidden',\n    shadowColor: '#000',\n    shadowOffset: { width: 0, height: 2 },\n    shadowOpacity: 0.1,\n    shadowRadius: 8,\n    elevation: 4,\n  },\n  image: {\n    width: '100%',\n    height: 160,\n    backgroundColor: '#f3f4f6',\n  },\n  content: {\n    padding: 16,\n    gap: 4,\n  },\n  title: {\n    fontSize: 18,\n    fontWeight: '600',\n    color: '#1f2937',\n  },\n  subtitle: {\n    fontSize: 14,\n    color: '#6b7280',\n    lineHeight: 20,\n  },\n});\n```\n\n## Best Practices\n\n1. **Use TypeScript**: Define navigation and prop types for type safety\n2. **Memoize Components**: Use `React.memo` and `useCallback` to prevent unnecessary rerenders\n3. **Run Animations on UI Thread**: Use Reanimated worklets for 60fps animations\n4. **Avoid Inline Styles**: Use StyleSheet.create for performance\n5. **Handle Safe Areas**: Use `SafeAreaView` or `useSafeAreaInsets`\n6. **Test on Real Devices**: Simulator\u002Femulator performance differs from real devices\n7. **Use FlatList for Lists**: Never use ScrollView with map for long lists\n8. **Platform-Specific Code**: Use Platform.select for iOS\u002FAndroid differences\n\n## Common Issues\n\n- **Gesture Conflicts**: Wrap gestures with `GestureDetector` and use `simultaneousHandlers`\n- **Navigation Type Errors**: Define `ParamList` types for all navigators\n- **Animation Jank**: Move animations to UI thread with `runOnUI` worklets\n- **Memory Leaks**: Cancel animations and cleanup in useEffect\n- **Font Loading**: Use `expo-font` or `react-native-asset` for custom fonts\n- **Safe Area Issues**: Test on notched devices (iPhone, Android with cutouts)\n\n## Resources\n\n- [React Native Documentation](https:\u002F\u002Freactnative.dev\u002F)\n- [React Navigation](https:\u002F\u002Freactnavigation.org\u002F)\n- [Reanimated Documentation](https:\u002F\u002Fdocs.swmansion.com\u002Freact-native-reanimated\u002F)\n- [Gesture Handler](https:\u002F\u002Fdocs.swmansion.com\u002Freact-native-gesture-handler\u002F)\n- [Expo Documentation](https:\u002F\u002Fdocs.expo.dev\u002F)\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fwshobson\u002Freact-native-design",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill react-native-design",{"tool":57,"command":58},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill react-native-design",{"tool":60,"command":61},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill react-native-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fwshobson\u002Freact-native-design\u002FSKILL.md",true,[65,71,75,79],{"path":66,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Fnavigation-patterns.md","REFERENCE","参考文档",20184,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fwshobson\u002Freact-native-design\u002Freferences\u002Fnavigation-patterns.md",{"path":72,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Freanimated-patterns.md",17423,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fwshobson\u002Freact-native-design\u002Freferences\u002Freanimated-patterns.md",{"path":76,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fstyling-patterns.md",18876,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fwshobson\u002Freact-native-design\u002Freferences\u002Fstyling-patterns.md",{"path":80,"resourceType":67,"resourceTypeDesc":68,"sizeBytes":81,"sourceHtmlUrl":82},"skill-report.json",44851,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fwshobson\u002Freact-native-design\u002Fskill-report.json",[84,93,102,110,116,122],{"skillNo":85,"name":86,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":37},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[90,91,92],"model","model hierarchy","model hierarchy skill",{"skillNo":94,"name":95,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":37},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[99,100,101],"MCP","zoom","zoom mcp",{"skillNo":103,"name":104,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":37},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[108,109,35,100],"sdk","zoom apps sdk",{"skillNo":111,"name":112,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":37},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[112],{"skillNo":117,"name":118,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":37},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[118],{"skillNo":123,"name":124,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":37},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[124]]