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…

What is this?React Native for macOS — an experimental fork of React Native for building native macOS desktop applications with Cocoa. It is deprecated and no longer maintained; Microsoft's react-native-windows, which runs React Native on Mac Catalyst, is the successor.
So is it a framework I build on, or a finished app?A framework: a fork of React Native for iOS, so you write your app in React and JavaScript and it renders as a native Cocoa application on macOS.
How do I add it to my existing React Native project?Follow the getting-started steps, merge the new macOS folder into your current iOS/Android/Windows React Native project, and put rn-cli.config.js in the project root. The regular React Native documentation applies, since this is just a fork.
What do I need installed to build with it?A Mac running OS X 10.11 or later with Node 4.x or newer. Previous React Native experience is highly recommended, as the project leans on the standard React Native toolchain and docs.
Is this project still alive, and what is the catch?No — it is deprecated and unmaintained, and even at launch the author called it a fairly new fork to 'proceed at your own risk'. For anything new, Microsoft's version that runs React Native on Catalyst is the recommended path.
Is it free to use in my own app?Yes — React Native is MIT licensed, so you can use it in personal and commercial macOS apps at no cost.
Can I preview what it can do before committing to it?Yes — the bundled RNTesterApp includes a set of component examples that illustrate their functionality, and it can load external JavaScript bundle files over HTTP: just copy and paste a URL into the Search Field.
Does the regular React Native documentation work for this fork?Yes. Since it is just a fork of React Native for iOS, the project says you can follow the same instructions on the React Native Documentation.
Why was it deprecated, and what should I pick today instead?It was deprecated in favor of Microsoft's React Native for Windows effort, which also lets you run React Native on Mac Catalyst. The fork itself remains as an unmaintained experiment with around 11k stars.
Creator
ptmt
Size
83.5 MB
Stars
11.2K
Age
11y
Commits · 90 Days