agentsclimarketplace

React native developer

Skill AtulPurohit/Antigravity-Awesome-Skills/plugins/mobile-engineer/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

Install
npx -y skills add AtulPurohit/Antigravity-Awesome-Skills --skill react-native-developer

Assembled 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

  1. Project structure with Expo Router
  2. Navigation configuration
  3. State management setup
  4. API integration with error handling
  5. Push notification implementation
  6. EAS Build configuration for deployment

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.