Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
R

react-native-macos

> 编程语言
Open source

[deprecated in favor of https://microsoft.github.io/react-native-windows/] React Native for macOS is an experimental fork for writing desktop apps using Cocoa

11.2K stars0 likes2 views
WebsiteGitHub

About

[deprecated in favor of https://microsoft.github.io/react-native-windows/] React Native for macOS is an experimental fork for writing desktop apps using Cocoa

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.


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

Getting Started

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

Previous React Native experience is highly recommended.

bash
$ 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.

  • Ask a question on StackOverflow and tag it with react-native-macos
  • Chat with us on Reactiflux in #react-native-platforms (mentioning @ptmt)
  • DM @ptmt on twitter

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

License

React Native is MIT licensed.

Issues· 76 open

View all issuesOpen on GitHub
  • #285

    Security: vulnerable dependency image-size (CVE-2025-71329/71330) — maintained drop-in available

    Updated Aug 10, 2026
  • #250

    command not found: react-native-macos

    bugUpdated Mar 9, 2026
  • #248

    `react-native-macos init MyProject` fails.

    bugUpdated Mar 23, 2020
  • #245

    ENOENT: no such file or directory, chdir

    bugUpdated Mar 21, 2020
  • #230

    Unofficial roadmap

    work in progressUpdated Nov 23, 2019
  • #247

    Can't change BackgroundColor of TextInput

    bugUpdated Oct 7, 2019
  • #164

    How do I add react-native-macos to an existing React Native project?

    proposalUpdated Sep 24, 2019
  • #246

    Incompatible with React 16.3 Context Provider API

    bugUpdated Aug 13, 2019
  • #236

    textAlign not work

    bugUpdated Apr 12, 2019
  • #240

    TouchableHighlight works only with the first touch

    bugUpdated Apr 11, 2019

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言