Create react native library

From NVlabs/Skill2Env · View interactive version

Create react native library is an AI agent skill from the GitHub repository NVlabs/Skill2Env. 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.

How to use this skill

Skill file

Create React Native Library

Overview

Use this skill to scaffold a standalone React Native library or a local library inside an existing app, then continue with the correct implementation docs.

Examples:

Choose one flow first:

When to Apply

Use this skill when:

Quick Reference

# Inspect current options before scaffolding
npx create-react-native-library@latest --help

# Scaffold a library with turbo modules and the Expo example app
npx create-react-native-library@latest awesome-library \
  --no-interactive \
  --yes \
  --description "A brief description of the library" \
  --type turbo-module \
  --languages kotlin-objc \
  --example expo

# Scaffold a local Turbo Module inside an existing app
cd MyApp
npx create-react-native-library@latest awesome-library \
  --local \
  --no-interactive \
  --yes \
  --description "A brief description of the library" \
  --type turbo-module \
  --languages kotlin-objc

References

| File | Description |

| --------------------------------------- | ------------------------------------------------------- |

| [scaffold-library.md][scaffold-library] | Scaffold a new library and default to the Expo example |

| [local-library.md][local-library] | Add a local library to an existing app with autolinking |

Problem -> Skill Mapping

| Problem | Start With |

| -------------------------------------------- | ------------------------------------ |

| Need a new library scaffold | [scaffold-library][scaffold-library] |

| Need to add a local native library to an app | [local-library][local-library] |

[scaffold-library]: references/scaffold-library.md

[local-library]: references/local-library.md

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.