[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BN8X6N5YA00RF7JHD4KB7B":3,"skill-same:01M7BN8X6N5YA00RF7JHD4KB7B":61},{"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":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7BN8X6N5YA00RF7JHD4KB7B","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.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-agents\u002Fplugins\u002Fui-design\u002Fskills\u002Freact-native-design\u002FSKILL.md",[],[],"2026-11-15 14:19:17",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","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Agent-智能体\u002FYYC3-Agent-智能体-agents\u002Fplugins\u002Fui-design\u002Fskills\u002Freact-native-design",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill react-native-design",{"tool":39,"command":40},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill react-native-design",{"tool":42,"command":43},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill react-native-design","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-agents\u002Fplugins\u002Fui-design\u002Fskills\u002Freact-native-design\u002FSKILL.md",true,[47,53,57],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fnavigation-patterns.md","REFERENCE","参考文档",20184,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-agents\u002Fplugins\u002Fui-design\u002Fskills\u002Freact-native-design\u002Freferences\u002Fnavigation-patterns.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Freanimated-patterns.md",17423,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-agents\u002Fplugins\u002Fui-design\u002Fskills\u002Freact-native-design\u002Freferences\u002Freanimated-patterns.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fstyling-patterns.md",18876,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Agent-智能体\u002FYYC3-Agent-智能体-agents\u002Fplugins\u002Fui-design\u002Fskills\u002Freact-native-design\u002Freferences\u002Fstyling-patterns.md",[62,69,76,83,90,97],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"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":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]