react-native-mobile
Skill3 starsChanged 6 months agoMITView on GitHub
Build React Native mobile apps with Expo or React Native CLI, NativeWind (Tailwind), React Navigation, and Zustand. Use when creating iOS/Android apps, mobile UI, navigation, or native features.
- Installs packages
1 other project uses a version of this.
Adopted by
Most recently taken up by
- garri333/Skillstheir own version, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- garri333/Skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- code-reviewSkill
- nestjs-backendSkill
- nodejs-backendSkill
- react-frontendSkill
- tddSkill
- Code Review & QualitySkill
- Data Transformation & AnalysisSkill
- deploySkill
- Incremental ImplementationSkill
- security-reviewSkill
- Test-Driven DevelopmentSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 234
Use FlatList for long lists (not ScrollView)
- Very specific: line 235
Use useMemo for expensive calculations
- Very specific: line 236
Use expo-image or FastImage for images
- Very specific: line 237
Use react-native-reanimated for 60fps animations
- Very specific: line 238
Avoid re-renders with memo() for heavy components
- Distinctive: line 259
Test user flows, not implementation
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
React Native Mobile Development
Build cross-platform mobile apps with React Native.
Impact Levels
| Level | Description |
| CRITICAL | Must follow - security, performance |
| HIGH | Should follow - maintainability, UX |
| MEDIUM | Recommended - code quality |
Framework Selection (HIGH)
| Use Case | Framework |
| Most apps (95%), MVPs, quick iteration | Expo (managed) |
| Custom native modules, brownfield apps | React Native CLI |
Tech Stack
- UI: NativeWind (Tailwind CSS)
- Navigation: React Navigation / Expo Router
- State: Zustand + TanStack Query
- Storage: MMKV / expo-secure-store
- Forms: react-hook-form + Zod
- Animations: react-native-reanimated
Critical Rules
1. NO INLINE STYLES (CRITICAL)
// FORBIDDEN
<View style={{flex: 1, padding: 16}}>
<View style={[styles.container, {marginTop: 10}]}>
// CORRECT - Use NativeWind
<View className="flex-1 p-4">
<View className="mt-2.5">2. Use Shared Components (CRITICAL)
// CORRECT
import { Text } from '@/components/ui/Text';
import { Button } from '@/components/ui/Button';
// WRONG - Don't import Text from react-native
import { Text } from 'react-native';Project Structure (Expo Router)
app/
├── (tabs)/ # Tab navigator
│ ├── _layout.tsx
│ ├── index.tsx # Home
│ └── profile.tsx
├── (auth)/ # Auth stack
│ ├── _layout.tsx
│ ├── login.tsx
│ └── register.tsx
├── _layout.tsx # Root layout
└── +not-found.tsx
components/
├── ui/ # Shared UI
└── features/ # Feature-specific
stores/ # Zustand stores
lib/ # API, utilsPatterns
Navigation (Expo Router) (HIGH)
// app/_layout.tsx
import { Stack } from 'expo-router';
export default function RootLayout() {
return (
<Stack screenOptions={{ headerShown: false }}>
<Stack.Screen name="(tabs)" />
<Stack.Screen name="(auth)" />
</Stack>
);
}
// app/(tabs)/_layout.tsx
import { Tabs } from 'expo-router';
import { Home, User } from 'lucide-react-native';
export default function TabLayout() {
return (
<Tabs>
<Tabs.Screen
name="index"
options={{
title: 'Home',
tabBarIcon: ({ color }) => <Home color={color} />
}}
/>
</Tabs>
);
}State Management (HIGH)
// stores/auth-store.ts
import { create } from 'zustand';
import { persist, createJSONStorage } from 'zustand/middleware';
import AsyncStorage from '@react-native-async-storage/async-storage';
interface AuthState {
token: string | null;
user: User | null;
setAuth: (token: string, user: User) => void;
logout: () => void;
}
export const useAuthStore = create<AuthState>()(
persist(
(set) => ({
token: null,
user: null,
setAuth: (token, user) => set({ token, user }),
logout: () => set({ token: null, user: null }),
}),
{
name: 'auth-storage',
storage: createJSONStorage(() => AsyncStorage),
}
)
);API Client
// lib/api.ts
import axios from 'axios';
import Constants from 'expo-constants';
import { useAuthStore } from '@/stores/auth-store';
const API_URL = Constants.expoConfig?.extra?.apiUrl;
export const api = axios.create({
baseURL: API_URL,
timeout: 10000,
});
api.interceptors.request.use((config) => {
const token = useAuthStore.getState().token;
if (token) {
config.headers.Authorization = `Bearer ${token}`;
}
return config;
});Secure Storage (CRITICAL)
import * as SecureStore from 'expo-secure-store';
export const secureStorage = {
async get(key: string): Promise<string | null> {
return SecureStore.getItemAsync(key);
},
async set(key: string, value: string): Promise<void> {
await SecureStore.setItemAsync(key, value);
},
async remove(key: string): Promise<void> {
await SecureStore.deleteItemAsync(key);
},
};UI Components
// components/ui/Button.tsx
import { TouchableOpacity, Text, View } from 'react-native';
import { cn } from '@/lib/utils';
interface ButtonProps {
onPress: () => void;
variant?: 'primary' | 'secondary';
children: React.ReactNode;
className?: string;
}
export function Button({
onPress,
variant = 'primary',
children,
className
}: ButtonProps) {
return (
<TouchableOpacity
onPress={onPress}
className={cn(
'py-3 px-6 rounded-lg items-center',
variant === 'primary' && 'bg-primary',
variant === 'secondary' && 'border border-primary bg-transparent',
className
)}
>
{children}
</TouchableOpacity>
);
}Performance (HIGH)
- Use
FlatListfor long lists (not ScrollView) - Use
useMemofor expensive calculations - Use
expo-imageorFastImagefor images - Use
react-native-reanimatedfor 60fps animations - Avoid re-renders with
memo()for heavy components
EAS Build & Submit
# Install
npm install -g eas-cli
# Build
eas build --platform ios --profile production
eas build --platform android --profile production
# Submit
eas submit --platform ios
eas submit --platform androidTesting
- Jest + React Native Testing Library
- Detox for E2E
- Test user flows, not implementation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

