create-react-native-library

视觉设计 / 插画 界面 · 动效 · 设计品味 4 文件 EN 原文

Scaffolds React Native libraries with create-rea

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.

说明语言:英文

来源callstackincubatoragent-skills ↗ 查看原文件 ↗版权归原作者,请遵循原仓库许可
安装
npx skills add https://github.com/callstackincubator/agent-skills --skill create-react-native-library

需要已安装 skills CLI。也可以直接从源仓库 clone。

在星云中查看 ↗
SKILL.md 原文

name: create-react-native-library description: 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. license: MIT ---

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

FileDescription
[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

ProblemStart 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

同类技能
accessibilityaccessibility-complianceanimateanimate-expoanimation-performanceanimation-vocabularyanti-ui-slopapple-design
本页内容来自开源项目 callstackincubator, 版权归原作者所有。
本站仅作技能索引与分享,所有 Skill 版权归其原作者所有。