/react-native-macos

React Native for macOS

Primary LanguageJavaScriptOtherNOASSERTION

React Native for macOS (ex react-native-desktop)

Build macOS desktop apps using React Native and Cocoa.

Build Status npm version discord #react-native-platforms

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

Getting started

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

$ npm install react-native-macos-cli -g
$ react-native-macos init MyProject
$ cd MyProject
$ open macos/MyProject.xcodeproj

Since it's simply just a fork, you can follow the same instruction on facebook.github.io/react-native.

Disclaimer. Having previous experience with React Native highly recommended. There is no success story for any RN for macOS app yet, so it's not proven by production use.

Feel free to ask anything on #react-native-platforms channel if you run into problems.

Examples

Download UIExplorer

UIExplorer includes a set of examples and allows to you load external javascript bundle by http. Just copy&paste URL into SearchField.

screenshot 2016-03-31 21 06 33

screenshot 2016-03-31 21 00 30

screenshot 2015-10-24 16 40 36

Youtube play