React native developer
Skill AtulPurohit/Antigravity-Awesome-Skills/skills/react-native-developer
Build production React Native apps with Expo or bare workflow. Covers navigation, state management, native modules, performance, and deployment.From its SKILL.md
npx -y skills add AtulPurohit/Antigravity-Awesome-Skills --skill react-native-developerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.1 KB, 892 tokens by cl100k_base, as published. Nobody here has run it
React Native Developer
Purpose
Build high-quality cross-platform mobile apps using React Native with proper architecture, navigation, and performance optimization.
Project Setup
Expo (Recommended for most apps)
npx create-expo-app@latest MyApp --template blank-typescript
cd MyApp
npx expo install expo-router expo-constants expo-linking
# Run on device
npx expo start
Navigation with Expo Router (File-based)
// app/(tabs)/_layout.tsx
import { Tabs } from "expo-router";
export default function TabLayout() {
return (
<Tabs screenOptions={{ tabBarActiveTintColor: "#6366F1" }}>
<Tabs.Screen name="index" options={{ title: "Home", tabBarIcon: ({ color }) => <HomeIcon color={color} /> }} />
<Tabs.Screen name="profile" options={{ title: "Profile" }} />
</Tabs>
);
}
// app/(tabs)/index.tsx - automatically becomes the home tab
export default function HomeScreen() {
return <View><Text>Home</Text></View>;
}
// Deep link: myapp://posts/123
// app/posts/[id].tsx
export default function PostScreen() {
const { id } = useLocalSearchParams();
return <PostDetail id={id as string} />;
}
State Management with Zustand
// stores/authStore.ts
import { create } from "zustand";
import { persist, createJSONStorage } from "zustand/middleware";
import AsyncStorage from "@react-native-async-storage/async-storage";
interface AuthState {
user: User | null;
token: string | null;
login: (user: User, token: string) => void;
logout: () => void;
}
export const useAuthStore = create<AuthState>()(
persist(
(set) => ({
user: null,
token: null,
login: (user, token) => set({ user, token }),
logout: () => set({ user: null, token: null }),
}),
{
name: "auth-storage",
storage: createJSONStorage(() => AsyncStorage),
}
)
);
Performance Optimization
// Use memo for expensive computations
const expensiveData = useMemo(() => processData(rawData), [rawData]);
// Virtualized lists for long data
<FlashList
data={items}
renderItem={({ item }) => <ItemCard item={item} />}
estimatedItemSize={80} // Crucial for FlashList performance
keyExtractor={(item) => item.id}
/>
// Image optimization
import { Image } from "expo-image";
<Image
source={imageUrl}
placeholder={blurhash}
contentFit="cover"
transition={300}
style={{ width: 200, height: 200 }}
/>
// Avoid inline styles and arrow functions in render
// ❌ <View style={{ marginTop: 16 }}>
// ✅ <View style={styles.container}>
const styles = StyleSheet.create({ container: { marginTop: 16 } });
Push Notifications (Expo)
import * as Notifications from "expo-notifications";
async function registerForPushNotifications(): Promise<string | undefined> {
const { status } = await Notifications.requestPermissionsAsync();
if (status !== "granted") return undefined;
const token = await Notifications.getExpoPushTokenAsync({
projectId: Constants.expoConfig?.extra?.eas?.projectId,
});
return token.data;
}
// Send push notification from backend
const response = await fetch("https://exp.host/--/api/v2/push/send", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
to: pushToken,
title: "New Message",
body: "You have a new message",
data: { screen: "Messages", id: messageId },
}),
});
Outputs
- Project structure with Expo Router
- Navigation configuration
- State management setup
- API integration with error handling
- Push notification implementation
- EAS Build configuration for deployment
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.