技能低风险未认领

Create React Native Library

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.

callstackincubatorcallstackincubator/create-react-native-library★ 1.7k更新于 2026年9月16日

说明

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 when creating a new library that may be published to npm
  • Use local-library.md 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

# 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 a new library and default to the Expo example
local-library.md Add a local library to an existing app with autolinking

Problem -> Skill Mapping

Problem Start With
Need a new library scaffold scaffold-library
Need to add a local native library to an app local-library

权限

声明检测
运行代码—无
安装—npmnpxpnpm/yarn
安装时运行脚本—无
网络—nitro.margelo.comoss.callstack.comreactnative.dev
需要的凭据—无
工作区外的路径—无
智能体工具—无

检查

低风险 · 没有发现需要提醒的地方。

未经人工审核 · 已做规则检查;模型审核尚未开启。

文件4 个文件 · 11.2 KB

  • SKILL.md2.7 KB
agents/1
  • openai.yaml386 B
references/2
  • local-library.md3.7 KB
  • scaffold-library.md4.4 KB

版本

  1. #1—最新2026年10月7日