React Native for macOS
JavaScript Java Objective-C C++ C Python Other
Latest commit a2eaeeb Jan 5, 2017 @ptmt committed on GitHub Merge pull request #137 from LegNeato/master
Test multiple macOS SDKs in Travis.
Permalink
Failed to load latest commit information.
.github Update Edit on GitHub links to point to master Aug 4, 2016
Examples Merge pull request #125 from jhen0409/patch-2 Nov 25, 2016
IntegrationTests Update example Nov 7, 2016
JSCLegacyProfiler Sync with facebook/react-native@0.19 Jan 27, 2016
Libraries Add cursor component Dec 27, 2016
React Merge pull request #136 from matpaul/cursor Dec 28, 2016
ReactAndroid Merge with upstream Aug 10, 2016
ReactCommon First step to boot rn apps with hot bytecode cache Aug 4, 2016
babel-preset Fixing Issue #7526 May 26, 2016
blog update blog with misc minor requests Jul 6, 2016
bots Merge with upstream Aug 10, 2016
docs Merge with upstream Aug 10, 2016
flow Initial implementation of requestIdleCallback on Android Jul 14, 2016
jestSupport Clean and fix Flow and Jest Aug 12, 2016
keystores Added ability to run Movies app with BUCK Feb 26, 2016
lib Add forwarding modules for modules required by React May 10, 2016
local-cli Fix description Oct 7, 2016
packager Add module resolve `react-native` -> `react-native-macos` Nov 7, 2016
react-native-cli Sync up with 0.26.0 May 13, 2016
react-native-macos-cli Merge with upstream Aug 10, 2016
scripts Test multiple SDKs in Travis. Jan 4, 2017
website Replace npmcdn.com with unpkg.com Sep 2, 2016
.buckconfig Allow building UIExplorer with Buck Apr 12, 2016
.editorconfig Sync with facebook/react-native@0.19 Jan 27, 2016
.eslintignore [ReactNative] clean lint in all of Libraries/ May 19, 2015
.eslintrc Initial implementation of requestIdleCallback on Android Jul 14, 2016
.flowconfig Merge pull request #125 from jhen0409/patch-2 Nov 25, 2016
.gitattributes Added a .gitattributes file, ensuring that Bash script source files (… Oct 14, 2015
.gitignore Another part of sync with 0.26.0 May 19, 2016
.npmignore Merge rnpm into react-native May 20, 2016
.travis.yml Test multiple SDKs in Travis. Jan 4, 2017
CONTRIBUTING.md Update Edit on GitHub links to point to master Aug 4, 2016
LICENSE Update license Mar 23, 2015
LICENSE-CustomComponents Add CustomComponents license Mar 26, 2015
LICENSE-docs More licenses Mar 25, 2015
LICENSE-examples More licenses Mar 25, 2015
PATENTS Update Patent Grant Apr 10, 2015
README.md Fixing Readme Syntax highlighting Aug 22, 2016
React.podspec Merge with upstream Aug 10, 2016
Releases.md Use --follow-tags instead of --tags Jul 4, 2016
Windows Fix tutorial link in README.md Jun 14, 2016
build.gradle Support non-standard path of Android Support Repository Apr 21, 2016
circle.yml Improved android e2e tests stability Jun 24, 2016
cli.js Breaking change: Move `bundle` to `private-cli` Oct 13, 2015
package.json Merge pull request #125 from jhen0409/patch-2 Nov 25, 2016
react.gradle --reset-cache no longer accept a boolean parameter. Aug 2, 2016
rn-cli.config.js Add a local packager config, so that react can find react-native when… Jul 5, 2016
runXcodeTests.sh Add suggested ‘view size’ powers to -[RCTShadowView setFrame:] Mar 1, 2016

README.md

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