A framework for building native macOS apps with React.
Перейти к файлу
HeyImChris e0e598e19c
Nil check our run loop thread (#771)
* Update RCTCxxBridge.mm

* Update RCTCxxBridge.mm

* run loop nil check

Co-authored-by: Chris Hogan <chrishogan@Chriss-MacBook-Pro-2.local>
2021-05-13 09:28:57 -07:00
.ado Add some robustness to the CI and switch to Xcode 12 (#709) 2021-03-17 11:41:57 -07:00
.circleci Fix react-native-macos-init PR CI test (#654) 2020-11-18 18:21:15 +01:00
.github Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
Folly Add postInstall step to restore the executable bit on scripts. (#244) 2020-01-29 17:59:18 -08:00
IntegrationTests Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
Libraries Nil check our run loop thread (#771) 2021-05-13 09:28:57 -07:00
RNTester Add ColorWithSystemEffectMacOS API to react-native-macos (#751) 2021-03-31 23:18:16 -05:00
React Add ColorWithSystemEffectMacOS API to react-native-macos (#751) 2021-03-31 23:18:16 -05:00
ReactAndroid Merge remote-tracking branch 'facebook/0.63-stable' into fb633merge 2020-10-01 13:30:40 +02:00
ReactApple Remove the art lib from our nuget pack command (#600) 2020-09-16 15:00:27 -07:00
ReactCommon Add some robustness to the CI and switch to Xcode 12 (#709) 2021-03-17 11:41:57 -07:00
ReactTurboModuleCxx Add some robustness to the CI and switch to Xcode 12 (#709) 2021-03-17 11:41:57 -07:00
android-patches Add missing symbol RCTLinkingManagerCls (#714) 2021-02-09 21:25:53 -08:00
bots Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
danger lint fixes 2019-09-18 16:37:05 -07:00
docs Remove remaining merge marker and begin on flow/build issues 2020-05-10 17:52:09 -07:00
double-conversion Remove nmake (#112) 2019-07-17 13:13:16 -07:00
flow Removed merge conflict markers up to and including Libraries/Image 2020-04-30 17:49:51 -07:00
flow-typed/npm Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
follybuild Reduce differences between our folly and facebook folly (#138) 2019-08-12 17:25:15 -07:00
glog Add postInstall step to restore the executable bit on scripts. (#244) 2020-01-29 17:59:18 -08:00
gradle/wrapper Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
jest Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
jsc Initial commit of internal changes. 2019-03-01 10:09:07 -08:00
keystores put RN58 back 2019-03-28 13:44:57 -07:00
local-cli Add some robustness to the CI and switch to Xcode 12 (#709) 2021-03-17 11:41:57 -07:00
metadata Initial commit of internal changes. 2019-03-01 10:09:07 -08:00
packages Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
processor Moving the android specific changes to patch files and reverting them… (#254) 2020-03-18 18:20:08 -07:00
scripts Add some robustness to the CI and switch to Xcode 12 (#709) 2021-03-17 11:41:57 -07:00
stubs/glog put RN58 back 2019-03-28 13:44:57 -07:00
template Merge remote-tracking branch 'facebook/0.63-stable' into fb633merge 2020-10-01 13:30:40 +02:00
third-party-podspecs Add some robustness to the CI and switch to Xcode 12 (#709) 2021-03-17 11:41:57 -07:00
tools/build_defs Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
v8-docker-build Initial commit of internal changes. 2019-03-01 10:09:07 -08:00
website/server Initial commit of internal changes. 2019-03-01 10:09:07 -08:00
.buckconfig Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
.buckjavaargs limiting BUCK's memory for CI 2016-02-01 10:49:33 -08:00
.clang-format Moving ObjC specific clang-format rules to the common config 2019-02-11 13:07:09 -08:00
.editorconfig Merge react-native 0.61-stable (#323) 2020-04-28 11:49:15 -07:00
.eslintignore Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
.eslintrc Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
.flowconfig Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
.flowconfig.android Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
.flowconfig.macos Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
.gitattributes react-native-macos npm publishing with CRLF text files (#331) 2020-05-01 14:05:53 -07:00
.github.flowconfig.android 'Re-sync with internal repository' 2018-08-16 16:16:49 -07:00
.gitignore Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
.nvmrc Add .nvmrc + fix node version for eslint 5 compat (#20109) 2018-07-31 02:34:16 -07:00
.prettierignore Moving the android specific changes to patch files and reverting them… (#254) 2020-03-18 18:20:08 -07:00
.prettierrc Set the Prettier config so it is not forced on users of @react-native-community/eslint-config (#24635) 2019-04-29 09:44:51 -07:00
Brewfile Fix crash in NSLayoutManager during autorelease dealloc (#523) 2020-07-28 15:49:41 -07:00
Brewfile.lock.json Fix crash in NSLayoutManager during autorelease dealloc (#523) 2020-07-28 15:49:41 -07:00
CHANGELOG.json sync from internal (#6) 2019-03-07 14:57:20 -08:00
CHANGELOG.md sync from internal (#6) 2019-03-07 14:57:20 -08:00
CODE_OF_CONDUCT.md Adopt Contributor Covenant 2019-08-29 23:21:10 -07:00
CONTRIBUTING.md Contribution doc for RN62 (#598) 2020-09-15 14:06:07 -07:00
ECOSYSTEM.md Add document describing the RN ecosystem. (#24493) 2019-04-17 09:06:37 -07:00
KeepingRecent.md fix up some minor spacing issues with the numbering indentations (#213) 2020-01-03 14:17:03 -08:00
LICENSE put RN58 back 2019-03-28 13:44:57 -07:00
LICENSE-docs More licenses 2015-03-24 19:59:10 -07:00
README.md Add some robustness to the CI and switch to Xcode 12 (#709) 2021-03-17 11:41:57 -07:00
React-Core.podspec Add some robustness to the CI and switch to Xcode 12 (#709) 2021-03-17 11:41:57 -07:00
React.podspec Add some robustness to the CI and switch to Xcode 12 (#709) 2021-03-17 11:41:57 -07:00
Releases.md put RN58 back 2019-03-28 13:44:57 -07:00
build.gradle.kts Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
cli.js Show full price instead of monthly price within the lead form 2019-03-28 16:07:19 -07:00
gradlew Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
gradlew.bat Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
index.js Add ColorWithSystemEffectMacOS API to react-native-macos (#751) 2021-03-31 23:18:16 -05:00
interface.js Move `react-native-implementation.js` to `index.js` 2019-09-12 03:29:51 -07:00
jest-preset.js fix yarn tests (#351) 2020-05-07 17:18:38 -07:00
jest.config.js Fix lint tests. 2020-08-07 08:31:32 +02:00
metro.config.js Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
package.json Fix detox yarn error with Xcode 12 (#670) 2020-12-09 15:58:18 -08:00
react-native.config.js Provide information to metro to redirect to rn-macos when building macos (#587) 2020-09-14 20:12:17 +02:00
react.gradle Revert "v0.63 sync from upstream (#613)" 2020-09-30 20:21:14 +02:00
rn-get-polyfills.js Remove Polyfills from RN Open Source 2019-04-04 15:20:33 -07:00
runXcodeTests.sh Merge react-native 0.61-stable (#323) 2020-04-28 11:49:15 -07:00
settings.gradle.kts Moving the android specific changes to patch files and reverting them… (#254) 2020-03-18 18:20:08 -07:00
template.config.js Tidy up license headers [3/n] 2019-10-16 10:06:34 -07:00
yarn.lock Fix detox yarn error with Xcode 12 (#670) 2020-12-09 15:58:18 -08:00

README.md

React Native for macOS

Build native macOS apps with React.

React Native for macOS is released under the MIT license. Current npm package version. PRs welcome!

See the official React Native website for an introduction to React Native.

React Native is a framework developed by Facebook that enables you to build world-class application experiences on native platforms using a consistent developer experience based on JavaScript and React. The focus of React Native is on developer efficiency across all the platforms you care about - learn once, write anywhere.

This repository is a working fork of facebook/react-native that adds support for the official React Native for macOS implementation from Microsoft.

You can read more about the macOS implementation in our website - React Native for Windows + macOS

Contents

Requirements

You can run React Native for macOS apps on Mac devices with versions Mojave (10.14) or newer.

For a full and detailed list of the system requirements and how to set up your development platform, see our System Requirements documentation on our website.

Getting Started

See the Getting Started Guide on our React Native for Windows + macOS website to build your first React Native for macOS app.

Logging Issues

Search the existing issues and try to make sure your problem doesnt already exist before opening a new issue. If your issue doesn't exist yet, try to make sure you provide as much information as possible to us so we can help you sooner. Its helpful if you include information like:

  • The version of macOS, React Native, React Native macOS extension where you ran into the issue.
  • A stack trace and reduced repro case when possible.
  • Ensure the appropriate template is used when filing your issue(s).

Contributing

See Contributing guidelines for how to setup your fork of the repo and start a PR to contribute to React Native for macOS.

Good First Issue and help wanted are great starting points for PRs.

Documentation

React Native already has great documentation and we're working to ensure the React Native for Windows + macOS are part of that documentation story.

React Native for Windows + macOS has it's own separate documentation site where Windows and macOS specific information, like API docs and blog updates live. We are bootstrapping documentation for macOS at this time, tune in for updates.

Examples

  • Using the CLI in the Getting Started guide will set you up with a sample React Native for macOS app that you can begin editing right away.
  • If you're looking for sample code, just browse the RNTester folder for examples

License

The React Native for macOS extension, including modifications to the original Facebook source code, and all newly contributed code is provided under the MIT License. Portions of the React Native for macOS extension derived from React Native are copyright Facebook.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.