React Native Expert

Builds, optimizes, and debugs cross-platform mobile applications with React Native and Expo.

Development / Frontenddevelopmentfrontend
by AgentVoltv1.0.0Published 1y ago1 install
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

PromptSet up tab and stack navigation in my React Native app
Beforegeneric AI agent
React Native has excellent navigation libraries like React Navigation that handle complex navigation patterns. You can use bottom tab navigators and stack navigators together. The structure involves nesting navigators strategically - typically a tab navigator at the top level with stack navigators inside each tab. State management is important for passing data between screens correctly. You'll need to install the dependencies and configure the navigators properly. Would you like a basic setup example to get started, or do you need help with a specific navigation pattern or use case? I can provide different approaches depending on your needs.
Afterwith React Native Expert
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { Ionicons } from '@expo/vector-icons';

const Stack = createNativeStackNavigator();
const Tab = createBottomTabNavigator();

const HomeStack = () => (
  <Stack.Navigator screenOptions={{ headerStyle: { backgroundColor: '#007AFF' }, headerTintColor: '#fff' }}>
    <Stack.Screen name="HomeFeed" component={HomeFeed} options={{ title: 'Home' }} />
    <Stack.Screen name="PostDetail" component={PostDetail} options={{ title: 'Post' }} />
  </Stack.Navigator>
);

const ProfileStack = () => (
  <Stack.Navigator>
    <Stack.Screen name="ProfileView" component={ProfileView} options={{ title: 'Profile' }} />
    <Stack.Screen name="Settings" component={Settings} options={{ title: 'Settings' }} />
  </Stack.Navigator>
);

const Navigation = () => (
  <NavigationContainer>
    <Tab.Navigator
      screenOptions={({ route }) => ({
        tabBarIcon: ({ focused, color }) => {
          const iconName = route.name === 'Home' ? 'home' : 'person';
          return <Ionicons name={focused ? iconName : iconName + '-outline'} color={color} />;
        },
        headerShown: false
      })}
    >
      <Tab.Screen name="Home" component={HomeStack} />
      <Tab.Screen name="Profile" component={ProfileStack} />
    </Tab.Navigator>
  </NavigationContainer>
);

KEY PATTERNS: Nesting Stack navigators inside Tab prevents header duplication and manages independent navigation state for each tab. screenOptions standardize styling globally across screens. Ionicons dependency is pre-installed via expo SDK. Each tab screen maintains its own navigation stack independently. Deep linking configuration required for production apps. useFocusEffect hook helps detect when users switch between tabs for analytics or state reset. This pattern scales well to 4-5 tabs maximum.

About this skill


name: react-native-expert description: Use when Builds, optimizes, and debugs cross-platform mobile applications with React Native and Expo.

React Native Expert

Builds, optimizes, and debugs cross-platform mobile applications with React Native and Expo. Implements navigation hierarchies (tabs, stacks, drawers), configures native modules, optimizes FlatList rendering with memo and useCallback, and handles platform-specific code for iOS and Android. Use when building a React Native or Expo mobile app, setting up navigation, integrating native modules, improving scroll performance, handling SafeArea or keyboard input, or configuring Expo SDK projects.

What you get

  • Public GitHub repo
  • the skills/react-native-expert folder with SKILL.md and references.

Customize your output

  • Fork the repo and extend the skill's reference files for your own stack conventions.

Example output

Activates on a matching request (e.g. building or reviewing React Native Expert code) and can chain with other skills in the pack.

Best for

Full-stack developers and engineering teams using Claude Code.

SKILL.md preview

SKILL.md
---
name: react-native-expert
description: Use this skill when building a React Native or Expo mobile app, setting up navigation, integrating native modules, or optimizing scroll and rendering performance.
version: 1.0.0
category: Development / Frontend
author: AgentVolt
license: proprietary
tags:
  - development
  - frontend
---

# React Native Expert

Builds, optimizes, and debugs cross-platform mobile apps in React Native and Expo, with particular attention to navigation structure, native module integration, and list-rendering performance.

## When to use

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill

More development skills

View all Development skills →