A framework for building native macOS apps with React.
Перейти к файлу
Tom Underhill d7b689f90b
Fix coordinates of touch.pageX/pageY coordinates when RCTRootView is not at the origin of the NSWindow (#1619)
* Update scripts to publish react-native-macos-init

* Clean up merge markers

* Restored ios:macos RNTester parity except for InputAccessoryView.

* Revert "Restored ios:macos RNTester parity except for InputAccessoryView."

This reverts commit 5a67ae06b0.

* Remove unnecessary android builds and tar file upload.

* Fix coordinates of touch.pageX/pageY coordinates when RCTRootView is not at the origin of the NSWindow

Co-authored-by: React-Native Bot <53619745+rnbot@users.noreply.github.com>
2023-01-06 09:48:24 +01:00
.ado Remove Android Patches (#1591) 2022-12-14 12:55:32 -08:00
.bundle Introduce Gemfile, ruby-version (#32303) 2021-10-01 21:22:26 -07:00
.circleci Revert "Remove .circleci folder" (#1589) 2022-12-14 11:25:37 -08:00
.config Add compliance jobs 2022-03-03 21:46:29 -08:00
.github Remove Android Patches (#1591) 2022-12-14 12:55:32 -08:00
IntegrationTests Match package.json dependencies with RN Core + prettier (#1333) 2022-08-05 16:46:51 -07:00
Libraries Remove diff in RCTImageLoader (#1616) 2023-01-06 00:57:32 +00:00
React Fix coordinates of touch.pageX/pageY coordinates when RCTRootView is not at the origin of the NSWindow (#1619) 2023-01-06 09:48:24 +01:00
ReactAndroid Remove comment on merging stable branches -> main (#1595) 2022-12-22 14:52:00 -06:00
ReactCommon Remove comment on merging stable branches -> main (#1595) 2022-12-22 14:52:00 -06:00
ReactTurboModuleCxx Don't install boost twice (#1330) 2022-09-12 09:55:48 -07:00
bots Bump decode-uri-component from 0.2.0 to 0.2.2 in /bots (#1575) 2022-12-07 18:42:20 -08:00
docs [chore] Fix the docs & clarify the strategy for git flows and keep up with upstream (#1042) 2022-02-24 10:17:21 +00:00
flow Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
flow-typed/npm RN: Remove DeprecatedPropTypes 2022-01-20 18:17:03 -08:00
gradle/wrapper Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
jest Match package.json dependencies with RN Core + prettier (#1333) 2022-08-05 16:46:51 -07:00
keystores Use fb_native_wrapper for all targets 2018-10-31 11:47:42 -07:00
local-cli Fix Template project specifying wrong constraints (#1413) 2022-12-12 17:03:35 -08:00
packages RNTester: Add missing key attribute in NewAppScreen example (#27180) (#1608) 2022-12-22 14:51:40 -06:00
repo-config Match package.json dependencies with RN Core + prettier (#1333) 2022-08-05 16:46:51 -07:00
scripts Remove comment on merging stable branches -> main (#1595) 2022-12-22 14:52:00 -06:00
template Fix BAT line endings (#1142) 2022-08-11 21:56:18 -07:00
third-party-podspecs Don't install boost twice (#1330) 2022-09-12 09:55:48 -07:00
tools/build_defs Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
.buckconfig Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
.buckjavaargs
.clang-format Moving ObjC specific clang-format rules to the common config 2019-02-11 13:07:09 -08:00
.editorconfig Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
.eslintignore Merge commit 'f023519e491d8352fb384bd1520606c12cbad1ca' into amgleitman/0.64-merge-head 2021-10-05 18:55:29 -07:00
.eslintrc Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
.flowconfig Merge commit 'd3a0c4129d6a5a7beced4e9aa62b2da4e3f4fed4' into 0.68-merge-latest 2022-06-13 15:00:24 -07:00
.flowconfig.android Merge commit 'd3a0c4129d6a5a7beced4e9aa62b2da4e3f4fed4' into 0.68-merge-latest 2022-06-13 15:00:24 -07:00
.flowconfig.macos Merge commit 'd3a0c4129d6a5a7beced4e9aa62b2da4e3f4fed4' into 0.68-merge-latest 2022-06-13 15:00:24 -07:00
.gitattributes Merge commit '4603e7677743081be4f77f1b0754d88ae7be7b06' into 0.67-merge-latest 2022-04-28 13:03:36 -07:00
.gitignore Merge commit '73a04d145251ad2aad8afb587d3fd0c746c9f00f' into 0.68-merge-latest 2022-06-02 17:14:48 -07:00
.prettierignore RN: Change `@{ => no}format` in React Files 2021-11-09 00:33:12 -08:00
.prettierrc JS: Upgrade to Prettier v2.4.1 [1/n] 2021-11-02 22:14:16 -07:00
.ruby-version Bump ruby to 2.7.5 (#33485) 2022-05-17 11:39:09 -07:00
BUCK RN: Remove DeprecatedPropTypes 2022-01-20 18:17:03 -08:00
Brewfile [chore] bump all references to Node 16 (#997) 2022-02-03 14:32:43 +00:00
Brewfile.lock.json Applying package update to 0.66.6 ***NO_CI*** 2022-01-27 18:05:01 +00:00
CHANGELOG.md [chore] cleanup the markdown files (#1018) 2022-02-16 09:07:00 -08:00
CONTRIBUTING.md Merge commit '274c617f5bda263ff29115b3dcc013e47085a78d' into 0.68-merge-latest 2022-05-24 14:47:44 -07:00
Gemfile Bump ruby to 2.7.5 (#33485) 2022-05-17 11:39:09 -07:00
Gemfile.lock Merge pull request #1181 from amgleitman/0.68-merge-2021-11-03 2022-05-25 11:27:48 -07:00
GuardianCustomConfiguration.json Add compliance jobs 2022-03-03 21:46:29 -08:00
LICENSE Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
LICENSE-docs
README.md [chore] Fix the docs & clarify the strategy for git flows and keep up with upstream (#1042) 2022-02-24 10:17:21 +00:00
React-Core.podspec Merge commit 'e22b760e594db97c22b34084a1770ac3a40c0ccf' into 0.68-merge-latest 2022-06-09 17:28:16 -07:00
React.podspec Merge commit 'e22b760e594db97c22b34084a1770ac3a40c0ccf' into 0.68-merge-latest 2022-06-09 17:28:16 -07:00
SECURITY.md Microsoft mandatory file (#1170) 2022-05-19 12:38:33 -07:00
build.gradle.kts removing unused Detox (#32907) 2022-01-20 08:51:47 -08:00
cli.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
gradle.properties Bump Kotlin version to 1.6.10 (#32936) 2022-01-21 07:46:30 -08:00
gradlew bump gradle to 7.3 (#32588) 2021-11-15 06:47:39 -08:00
gradlew.bat Merge commit '8e66f0b35b5ec1054994f7048ef3e66002544197' into 0.67-merge-latest 2022-04-28 11:11:52 -07:00
index.js Remove AlertMacOS in favor of Alert 2022-12-09 11:16:38 -08:00
interface.js Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
jest-preset.js Merge commit 'e22b760e594db97c22b34084a1770ac3a40c0ccf' into 0.68-merge-latest 2022-06-09 17:28:16 -07:00
jest.config.js Merge commit 'e22b760e594db97c22b34084a1770ac3a40c0ccf' into 0.68-merge-latest 2022-06-09 17:28:16 -07:00
metro.config.js Merge commit 'e22b760e594db97c22b34084a1770ac3a40c0ccf' into 0.68-merge-latest 2022-06-09 17:28:16 -07:00
package.json Resolve micromatch to ^4.0.0 2022-11-30 14:57:44 -08:00
react-native.config.js Merge commit 'e22b760e594db97c22b34084a1770ac3a40c0ccf' into 0.68-merge-latest 2022-06-09 17:28:16 -07:00
react.gradle Do not remove libjscexecutor.so from release builds (#32932) 2022-01-20 04:20:14 -08:00
rn-get-polyfills.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
runXcodeTests.sh Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
settings.gradle.kts Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
template.config.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
yarn.lock Resolve micromatch to ^4.0.0 2022-11-30 14:57:44 -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

Requirements

You can run React Native for macOS apps on Mac devices with versions Catalina (10.15) 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 set up 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

The full documentation for React Native can be found on the documentation website. The React Native documentation discusses components, APIs, and topics that are specific to React Native. For further documentation on the React API that is shared between React Native and React DOM, refer to the React documentation.

The source for the React Native documentation and website is hosted on a separate repo, @facebook/react-native-website.

React Native for Windows + macOS has its own separate documentation site where Windows and macOS specific information, like API docs and blog updates live. We are still working on the documentation for macOS, contributions are welcome!

If you're looking for sample code, just browse the RNTester folder for examples

Git flow and syncing with upstream

For more details on how this fork handles keeping up with upstream, and how the general git flow works, check out this dedicated document.

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.