# Create react native library

> Create react native library is an open-source agent skill for developer tools. Scaffolds React Native libraries and local native modules with create-react-native-library. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/callstackincubator/agent-skills/tree/main/skills/create-react-native-library
- **Repository:** https://github.com/callstackincubator/agent-skills
- **GitHub stars:** 1,725
- **License:** MIT
- **Skill name:** create-react-native-library
- **Collection:** https://github.com/callstackincubator/agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill guides an agent through creating a React Native library with the create-react-native-library CLI. It separates two paths: a standalone library intended for npm publishing, and a local library added inside an existing app with autolinking. Each path points to its own reference document with the detailed steps.

The skill covers choosing between a JS-only library, a Turbo Module that exposes native functionality to JavaScript, or a native view component. It shows how to check the CLI options first and then run the scaffold non-interactively, passing flags such as the description, module type, native languages and example app.

It expects Node.js with npx available, and the user should supply a library name and description. Native code is written in Kotlin and Objective-C or Swift depending on the chosen language option. The skill ships no scripts of its own and relies on the published CLI.

## When your agent uses it

> Scaffolds React Native libraries with create-react-native-library for standalone libraries or local native modules and views. Use when creating or working on React Native libraries or adding native functionality in an existing app.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/callstackincubator/agent-skills/tree/HEAD/skills/create-react-native-library)
- [License: MIT](https://github.com/callstackincubator/agent-skills/tree/HEAD/skills/create-react-native-library)

## Features

- **Two scaffolding flows:** Separates new standalone libraries meant for npm from local libraries added to an existing app.
- **Non-interactive CLI commands:** Provides ready commands that pass name, description, module type and language flags to the CLI.
- **Turbo Module and view options:** Covers native modules exposing functionality to JavaScript and native UI components rendering views.
- **Example app setup:** Includes choosing an example app, such as Expo, when scaffolding a new library.
- **Local autolinking integration:** Explains adding a native library to an existing React Native app through autolinking.

## Good for

- Create a new React Native library to publish on npm
- Add a native module to an existing React Native app
- Wrap a native SDK so JavaScript code can call it
- Build a native view component for React Native
- Check available create-react-native-library options before scaffolding

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/create-react-native-library` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/callstackincubator/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/create-react-native-library &&
cp -R "$tmp/skills/create-react-native-library" ~/.claude/skills/create-react-native-library &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/create-react-native-library` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/create-react-native-library` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/callstackincubator/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/create-react-native-library &&
cp -R "$tmp/skills/create-react-native-library" ~/.agents/skills/create-react-native-library &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/create-react-native-library` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/create-react-native-library` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/callstackincubator/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/create-react-native-library &&
cp -R "$tmp/skills/create-react-native-library" ~/.cursor/skills/create-react-native-library &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/create-react-native-library` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/callstackincubator/agent-skills.git --path skills/create-react-native-library
```

Or copy the folder to `~/.gemini/skills/create-react-native-library` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/create-react-native-library`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/callstackincubator/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/create-react-native-library &&
cp -R "$tmp/skills/create-react-native-library" ~/.copilot/skills/create-react-native-library &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/create-react-native-library` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/callstackincubator/agent-skills.git
```

Then copy `agent-skills/skills/create-react-native-library` into your agent's skills folder as `create-react-native-library`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Create react native library trigger?

It applies when creating or working on a React Native library with create-react-native-library, or when adding native functionality to an existing app.

### Which flow should I pick?

Use the scaffold-library reference for a new library that may be published to npm, and the local-library reference for exposing native functionality inside a React Native app.

### Does the skill include scripts?

No. It contains only the SKILL.md instructions and reference documents that point to the create-react-native-library CLI.

### How do I install Create react native library in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/create-react-native-library to use it in all your projects, or to .claude/skills/create-react-native-library in one project.

### Does Create react native library run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Create react native library?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Create react native library?

The closest alternatives to Create react native library are Expo module, Expo examples, Expo brownfield, Expo router and Upgrading react native.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Expo module](https://ai-powered.com/skills/expo-module): Expo module is an open-source agent skill for developer tools.
- [Expo examples](https://ai-powered.com/skills/expo-examples-scaledockhq): Expo examples is an open-source agent skill for developer tools.
- [Expo brownfield](https://ai-powered.com/skills/expo-brownfield): Expo brownfield is an open-source agent skill for developer tools.
- [Expo router](https://ai-powered.com/skills/expo-router): Expo router is an open-source agent skill for developer tools.
- [Upgrading react native](https://ai-powered.com/skills/upgrading-react-native): Upgrading react native is an open-source agent skill for developer tools.
- [React native brownfield migration](https://ai-powered.com/skills/react-native-brownfield-migration): React native brownfield migration is an open-source agent skill for developer tools.
- [Expo router](https://ai-powered.com/skills/expo-router-scaledockhq): Expo router is an open-source agent skill for developer tools.
- [React native testing](https://ai-powered.com/skills/react-native-testing): React native testing is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/create-react-native-library
