react-native-mobile
БесплатноЗапускает вложенные скриптыНе проверенReact Native mobile development covering iOS and Android cross-platform apps, navigation, state management, native modules, and performance optimization for…
Об этом скилле
React Native Mobile Development
Level 1: Quick Reference (~700-900 tokens) Level 2: Implementation Guide (~4000-5000 tokens) Level 3: Deep Dive Resources (external links)
Level 1: Quick Reference
Core Components
import { View, Text, ScrollView, FlatList, Image, TouchableOpacity } from 'react-native';
// Basic Layout
<View style={styles.container}>
<Text style={styles.title}>Hello World</Text>
<Image source={require('./logo.png')} style={styles.image} />
<TouchableOpacity onPress={handlePress}>
<Text>Press Me</Text>
</TouchableOpacity>
</View>
// List Rendering (Performance Optimized)
<FlatList
data={items}
renderItem={({ item }) => <ItemCard item={item} />}
keyExtractor={item => item.id}
onEndReached={loadMore}
onEndReachedThreshold={0.5}
/>
// Scrollable Content
<ScrollView contentContainerStyle={styles.scrollContent}>
{/* Long content */}
</ScrollView>
Navigation (React Navigation v6)
// Stack Navigator
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
const Stack = createNativeStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Details" component={DetailsScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
// Navigate Between Screens
navigation.navigate('Details', { itemId: 42 });
navigation.goBack();
Styling
import { StyleSheet } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
text: {
fontSize: 16,
color: '#333',
fontWeight: 'bold',
},
});
Platform-Specific Code
import { Platform } from 'react-native';
const styles = StyleSheet.create({
container: {
marginTop: Platform.OS === 'ios' ? 20 : 0,
...Platform.select({
ios: { shadowColor: '#000', shadowOffset: { width: 0, height: 2 } },
android: { elevation: 4 },
}),
},
});
// Platform-specific files
// Button.ios.tsx
// Button.android.tsx
Essential Checklist
- Use
FlatListfor long lists (virtualized rendering) - Implement
React.memo()for expensive components - Handle safe area insets (notches, status bars)
- Test on both iOS and Android devices
- Optimize images (use proper dimensions, formats)
- Handle keyboard avoiding behavior
- Implement proper navigation typing
- Use
useCallbackanduseMemoappropriately - Handle network errors and offline states
- Add accessibility labels for screen readers
Level 2:
📚 Full Examples: See REFERENCE.md for complete code samples, detailed configurations, and production-ready implementations.
Implementation Guide
1. Core Components and APIs
Layout Components
See REFERENCE.md for complete implementation.
Interactive Components
See REFERENCE.md for complete implementation.
Input Components
See REFERENCE.md for complete implementation.
List Components
See REFERENCE.md for complete implementation.
2. Navigation Architecture
React Navigation v6 Setup
See REFERENCE.md for complete implementation.
Tab Navigation
See REFERENCE.md for complete implementation.
Drawer Navigation
See REFERENCE.md for complete implementation.
3. State Management
Redux Toolkit
See REFERENCE.md for complete implementation.
Zustand (Lightweight Alternative)
See REFERENCE.md for complete implementation.
React Query (Server State)
See REFERENCE.md for complete implementation.
4. Styling and Theming
StyleSheet API
See REFERENCE.md for complete implementation.
Styled Components
See REFERENCE.md for complete implementation.
Responsive Design
See REFERENCE.md for complete implementation.
5. Platform-Specific Code
Platform API
See REFERENCE.md for complete implementation.
File Extensions
See REFERENCE.md for complete implementation.
Conditional Rendering
See REFERENCE.md for complete implementation.
6. Native Modules and Bridges
Using Native Modules
See REFERENCE.md for complete implementation.
Linking to Native APIs
*S
Установить react-native-mobile в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл react-native-mobile?
React Native mobile development covering iOS and Android cross-platform apps, navigation, state management, native modules, and performance optimization for production-ready mobile applications
Как установить скилл react-native-mobile?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл react-native-mobile запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic