MCPInstall

react-native-basics

Master React Native fundamentals - components, styling, layout, and Expo

Installs
39
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/pluginagentmarketplace/custom-plugin-react-native --skill react-native-basics
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads react-native-basics automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

React Native Basics Skill

Learn production-ready React Native fundamentals including core components, StyleSheet, Flexbox, and Expo SDK.

Prerequisites

  • JavaScript/TypeScript fundamentals
  • React basics (components, props, state, hooks)
  • Node.js and npm/yarn installed
  • Xcode (iOS) or Android Studio (Android)

Learning Objectives

After completing this skill, you will be able to:

  • Create and compose React Native components
  • Apply styles using StyleSheet API
  • Build responsive layouts with Flexbox
  • Use platform-specific code (iOS/Android)
  • Set up and use Expo for development

Topics Covered

1. Core Components

View          - Container component (like div)
Text          - Text display (required for strings)
Image         - Image rendering
ScrollView    - Scrollable container
FlatList      - Optimized list rendering
TextInput     - User input
Pressable     - Touch handling

2. Styling System

// StyleSheet.create for performance
const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    padding: 16,
  },
  title: {
    fontSize: 24,
    fontWeight: 'bold',
    color: '#1a1a1a',
  },
});

3. Flexbox Layout

// Common patterns
flexDirection: 'row' | 'column'     // Main axis
justifyContent: 'center' | 'space-between'  // Main axis alignment
alignItems: 'center' | 'stretch'    // Cross axis alignment
flex: 1                              // Grow to fill

4. Platform-Specific Code

import { Platform } from 'react-native';

// Method 1: Platform.select
const styles = StyleSheet.create({
  shadow: Platform.select({
    ios: { shadowColor: '#000', shadowOpacity: 0.1 },
    android: { elevation: 4 },
  }),
});

// Method 2: Platform.OS
if (Platform.OS === 'ios') {
  // iOS specific code
}

5. Expo Setup

# Create new project
npx create-expo-app MyApp
cd MyApp

# Start development
npx expo start

# Build for production
eas build --platform all

Quick Start Example

import React from 'react';
import { View, Text, StyleSheet, FlatList, Pressable } from 'react-native';

interface Item {
  id: string;
  title: string;
}

export default function App() {
  const [items, setItems] = React.useState<Item[]>([
    { id: '1', title: 'Learn React Native' },
    { id: '2', title: 'Build first app' },
  ]);

  return (
    <View style={styles.container}>
      <Text style={styles.title}>My Tasks</Text>
      <FlatList
        data={items}
        keyExtractor={(item) => item.id}
        renderItem={({ item }) => (
          <Pressable style={styles.item}>
            <Text>{item.title}</Text>
          </Pressable>
        )}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: { flex: 1, padding: 16, backgroundColor: '#f5f5f5' },
  title: { fontSize: 24, fontWeight: 'bold', marginBottom: 16 },
  item: { backgroundColor: '#fff', padding: 16, marginBottom: 8, borderRadius: 8 },
});

Common Errors & Solutions

ErrorCauseSolution
"Text strings must be wrapped"Raw text outside <Text>Wrap all text in <Text>
Styles not applyingPlain object vs StyleSheetUse StyleSheet.create()
FlatList not scrollingNo height/flexAdd flex: 1 to parent
Image not showingInvalid sourceCheck URI or require path

Validation Checklist

  • Components render without errors
  • Styles apply correctly on both platforms
  • FlatList handles large lists efficiently
  • Platform-specific code works correctly
  • Expo build succeeds

Related Resources


Usage

Skill("react-native-basics")

Bonded Agent: 01-react-native-fundamentals

FAQ

What does the react-native-basics skill do?

Master React Native fundamentals - components, styling, layout, and Expo

How do I install react-native-basics?

Run npx skills add https://github.com/pluginagentmarketplace/custom-plugin-react-native --skill react-native-basics in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/react-native-basics/ (personal) or .claude/skills/react-native-basics/ (project).

Which AI agents can use react-native-basics?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is react-native-basics safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains react-native-basics?

It is published by pluginagentmarketplace in pluginagentmarketplace/custom-plugin-react-native. It has 39 recorded installs.

More from pluginagentmarketplace/custom-plugin-react-native

View all →

react-native-animations

pluginagentmarketplace/custom-plugin-react-native

Master animations - Reanimated 3, Gesture Handler, layout animations, and performance optimization

Frontend & Design663 installs

react-native-testing

pluginagentmarketplace/custom-plugin-react-native

Master testing - Jest, Testing Library, Detox E2E, and CI/CD integration

Testing & QA112 installs

react-native-navigation

pluginagentmarketplace/custom-plugin-react-native

Master React Navigation - stacks, tabs, drawers, deep linking, and TypeScript integration

Popular frontend & design skills

View category →

setup-matt-pocock-skills

mattpocock/skills

Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

Frontend & Design1.1M installs

frontend-design

anthropics/skills

Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.

OfficialFrontend & Design1M installs

hyperframes-animation

heygen-com/hyperframes

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). Also covers auditing an existing composition's choreography (animation map) and 24 named text-animation effects. HyperFrames-native: single paused timeline, seek-safe, deterministic.

prototype

mattpocock/skills

Build a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.

Frontend & Design999.2K installs

hyperframes-core

heygen-com/hyperframes

The HyperFrames composition contract — build one renderable project. Use for composition structure, the data- timing attributes, class="clip", tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Frontend & Design930.5K installs

vercel-react-best-practices

vercel-labs/agent-skills

React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

OfficialFrontend & Design843.1K installs