react-native-macos README

The project's README from github.com/ptmt/react-native-macos. As one markdown file: README.md.

Deprecation

The project is no longer maintained.

There is an Microsoft version: https://microsoft.github.io/react-native-windows/

You can run React Native on Catalyst https://github.com/react-native-community/discussions-and-proposals/issues/131

React Native macOS (ex react-native-desktop)

Build macOS desktop applications using React Native.


Build Status npm version discord #react-native-platforms

<View>
  <Button onPress={() => alert('clicked!')} />
</View>

Getting Started

Node 4.x+, OS X 10.11+ required.

Previous React Native experience is highly recommended.

$ npm install react-native-macos-cli -g
$ react-native-macos init MyProject
$ cd MyProject
$ react-native-macos run-macos

If you want to add macOS target to the existing iOS/Android/Windows project, make the steps above, merge this new folder into your current React Native project, then put rn-cli.config.js in the root.

Documentation

Since React Native macOS is just a fork, you can follow the same instructions on the React Native Documentation.

Disclaimer

React Native macOS is a fork of React Native for iOS. The project is still a fairly new so proceed at your own risk.

Community Help

Please use these community resources for getting help. We use the GitHub issues for tracking bugs and feature requests and have limited bandwidth to address them.

Examples

RNTesterApp

RNTesterApp includes a set of component examples that illustrate their functionality. It also allows you to load external JavaScript bundle files through HTTP. Just copy and paste a URL into the Search Field.

Download UIExplorer

screenshot 2016-03-31 21 06 33

screenshot 2016-03-31 21 00 30

screenshot 2015-10-24 16 40 36

License

React Native is MIT licensed.

react-native-macos (ptmt/react-native-macos)

Searching Database…

这是什么?React Native for macOS——React Native 的一个实验性分支,用于借助 Cocoa 构建原生 macOS 桌面应用。它已被弃用且不再维护;微软的 react-native-windows 是它的继任者,可以在 Mac Catalyst 上运行 React Native。
那它是我用来开发的框架,还是一个做好的应用?是一个框架:它 fork 自 iOS 版 React Native,所以你用 React 和 JavaScript 编写应用,它会在 macOS 上以原生 Cocoa 应用的形式呈现。
怎么把它加进我现有的 React Native 项目?按照入门步骤操作,把新的 macOS 文件夹合并到你现有的 iOS/Android/Windows React Native 项目中,并把 rn-cli.config.js 放到项目根目录。由于它只是个 fork,常规的 React Native 文档同样适用。
用它开发需要装什么?一台运行 OS X 10.11 或更高版本的 Mac,以及 Node 4.x 或更新版本。强烈建议事先有 React Native 使用经验,因为这个项目依赖标准的 React Native 工具链和文档。
这个项目还在维护吗?有什么坑?没有——它已被弃用且无人维护,作者在发布时就说过这是一个相当新的 fork,使用需自担风险。要做新项目,推荐走微软那条在 Catalyst 上运行 React Native 的路线。
可以免费在自己的应用里用吗?可以——React Native 采用 MIT 许可证,所以在个人和商业 macOS 应用中都可以免费使用。
在决定采用之前,我能先预览它的功能吗?可以——内置的 RNTesterApp 包含一组组件示例,展示了它们的功能,还能通过 HTTP 加载外部的 JavaScript bundle 文件:只要把 URL 复制粘贴到 Search Field 里就行。
常规的 React Native 文档对这个 fork 也适用吗?适用。由于它只是 iOS 版 React Native 的一个 fork,项目方表示可以按照 React Native 文档上的同样说明操作。
它为什么被弃用?现在我该选什么替代?它被弃用是为了让位于微软的 React Native for Windows 项目,该项目同样支持在 Mac Catalyst 上运行 React Native。这个 fork 本身仍作为一个无人维护的实验项目存在,大约有 1.1 万个 star。
Creator
ptmt
Size
83.5 MB
Stars
11.2K
Age
11y
Commits · 90 Days