[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FBRC1NV44NDSPES69Y1W8P":3,"skill-same:01M7FBRC1NV44NDSPES69Y1W8P":60},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7FBRC1NV44NDSPES69Y1W8P","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.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Freact-native-design\u002FSKILL.md",[],[],"2026-11-16 10:05:34",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","# 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",{"name":5,"description":7},"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Freact-native-design",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill react-native-design",{"tool":38,"command":39},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill react-native-design",{"tool":41,"command":42},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill react-native-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Freact-native-design\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fnavigation-patterns.md","REFERENCE","参考文档",20184,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Freact-native-design\u002Freferences\u002Fnavigation-patterns.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Freanimated-patterns.md",17423,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Freact-native-design\u002Freferences\u002Freanimated-patterns.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fstyling-patterns.md",18876,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Freact-native-design\u002Freferences\u002Fstyling-patterns.md",[61,68,73,80,87,94],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":69,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]