@react-native-gpui / cli
用于React Native桌面应用程序的命令行工具:创建、运行、测试和打包它们。
的一部分 react-native-gpui, macOS, Windows和Linux的React Native。
命令
| 命令 | 描述 |
|---|---|
npx @react-native-gpui/cli init MyApp | 创建一个应用程序 desktop/ 目标。 |
npx react-native init-desktop | 添加一个 desktop/ 瞄准一个现有的应用程序。 |
npx react-native doctor-desktop | 检查此操作系统的工具链。 |
npx react-native run-desktop | 构建并运行应用程序 --release 用于发布版本。 |
npx react-native package-desktop | 构建安装程序: .app/.dmgNSIS, .deb/.AppImage. |
npx react-native create-library <Name> | 在Rust或c++中创建一个本地模块库。 |
文档
许可证
麻省理工学院。看到 许可证.