Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native for Mac

Tags:

I'm using React Native to build a mobile App. Also I have a similar Mac App, I'm wondering if React Native can be adapted for Mac, how difficult it is.

like image 640
Qing Xu Avatar asked Aug 18 '15 08:08

Qing Xu


People also ask

Does React Native work on Mac?

React Native solves this problem by offering React Native for Windows + macOS framework, enabling developers to build cross-platform desktop applications for Windows and macOS using only a single codebase. This cross-platform development ability provides React Native support for the Windows SDK and the macOS 10.14 SDK.

Do I need macOS for React Native?

A Mac device is required to build projects with native code for macOS. Install Xcode version 11.3. 1 or newer.

Can Xcode run React Native?

If you are already familiar with mobile development, you may want to use React Native CLI. It requires Xcode or Android Studio to get started. If you already have one of these tools installed, you should be able to get up and running within a few minutes.


1 Answers

React Native - doesn't support native OS X app, it is geared towards mobile native applications.

Even though it doesn't seem to be easy to adapt the code to run as a native OS X app, there is at least one project that is attempting to do that (the author of the project states that this was a weekend hack project and therefore not production ready, but nonetheless a good start point):

https://github.com/ptmt/react-native-desktop

like image 73
Marcos Abreu Avatar answered Sep 29 '22 00:09

Marcos Abreu