Create React Native Library

by callstackincubator61e6e7dfdf3aMIT1.6K starsListed Oct 8, 2026Updated Oct 8, 2026Repository updated today

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.

Instructions onlySoftware Development
AI-generated overview

Scaffolds React Native libraries, either standalone or as local native modules and views inside an existing app.

What it does
Guides the agent through scaffolding a React Native library using the create-react-native-library CLI, covering JS-only libraries, native modules, and native UI components. It splits work into two flows: creating a new publishable library and adding a local library to an existing app with autolinking. It provides reference documents and example CLI invocations with options such as type, languages, and example app.
When to use it
Use it when creating or working on a React Native library, adding a native module or view to an existing app, or wrapping native SDKs for React Native. It is meant for choosing the right scaffolding flow before implementation.
Requirements
Requires Node.js and npx to run the create-react-native-library CLI, plus network access to fetch the package. It ships no scripts; it is instructions and reference documents only.

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:

  • JS-only library that may use other React Native libraries
  • Native modules that expose native functionality to JavaScript
  • Native UI components that render native views in React Native

Choose one flow first:

  • Use scaffold-library.md [blocked] when creating a new library that may be published to npm
  • Use local-library.md [blocked] when exposing native functionality in a React Native app

When to Apply

Use this skill when:

  • Creating or working on a React Native library with create-react-native-library
  • Creating a native module or view in an existing app
  • Wrapping native SDKs and exposing them to React Native

Quick Reference

bash
# Inspect current options before scaffoldingnpx create-react-native-library@latest --help
# Scaffold a library with turbo modules and the Expo example appnpx 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 appcd MyAppnpx 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

FileDescription
scaffold-library.md [blocked]Scaffold a new library and default to the Expo example
local-library.md [blocked]Add a local library to an existing app with autolinking

Problem -> Skill Mapping

ProblemStart With
Need a new library scaffoldscaffold-library [blocked]
Need to add a local native library to an applocal-library [blocked]

Source and attribution

Source:callstackincubator/agent-skillsinskills/create-react-native-libraryat commit61e6e7d

License: MIT

Content belongs to its original authors. SourceWeft indexes it from a public repository.

Report or request removal