A framework for building native macOS apps with React.
Перейти к файлу
Saad Najmi 35c96300ae
Don't override key presses "Space"/"Enter" to perform onClick in RCTView (#941)
* add pull yml

* match handleOpenURLNotification event payload with iOS (#755) (#2)

Co-authored-by: Ryan Linton <ryanlntn@gmail.com>

* [pull] master from microsoft:master (#11)

* Deprecated api (#853)

* Remove deprecated/unused context param
* Update a few Mac deprecated APIs

* Packing RN dependencies, hermes and ignoring javadoc failure,  (#852)

* Ignore javadoc failure

* Bringing few more changes from 0.63-stable

* Fixing a patch in engine selection

* Fixing a patch in nuget spec

* Fixing the output directory of nuget pack

* Packaging dependencies in the nuget

* Fix onMouseEnter/onMouseLeave callbacks not firing on Pressable (#855)

* add pull yml

* match handleOpenURLNotification event payload with iOS (#755) (#2)

Co-authored-by: Ryan Linton <ryanlntn@gmail.com>

* fix mouse evetns on pressable

* delete extra yml from this branch

* Add macOS tags

* reorder props to have onMouseEnter/onMouseLeave always be before onPress

Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
Co-authored-by: Ryan Linton <ryanlntn@gmail.com>

* Grammar fixes. (#856)

Updates simple grammar issues.

Co-authored-by: Nick Trescases <42704557+ntre@users.noreply.github.com>
Co-authored-by: Anandraj <anandrag@microsoft.com>
Co-authored-by: Saad Najmi <saadnajmi2@gmail.com>
Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
Co-authored-by: Ryan Linton <ryanlntn@gmail.com>
Co-authored-by: Muhammad Hamza Zaman <mh.zaman.4069@gmail.com>

* remove performKeyEquivalent

Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
Co-authored-by: Ryan Linton <ryanlntn@gmail.com>
Co-authored-by: Nick Trescases <42704557+ntre@users.noreply.github.com>
Co-authored-by: Anandraj <anandrag@microsoft.com>
Co-authored-by: Muhammad Hamza Zaman <mh.zaman.4069@gmail.com>
2022-01-19 09:50:26 -08:00
.ado Disable Integration job on main branch (#947) 2022-01-14 15:43:14 -08:00
.circleci Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
.github Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
Folly Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
IntegrationTests Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
Libraries Expose text tooltip (#960) 2022-01-18 22:36:52 -08:00
React Don't override key presses "Space"/"Enter" to perform onClick in RCTView (#941) 2022-01-19 09:50:26 -08:00
ReactAndroid Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
ReactApple Remove deprecated CameraRoll component (#797) 2021-06-29 12:48:30 -07:00
ReactCommon Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
ReactTurboModuleCxx Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
android-patches Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
bots Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08: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 Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
flow-typed/npm Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08: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 Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
jest Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08: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 Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
metadata Initial commit of internal changes. 2019-03-01 10:09:07 -08:00
packages Add onFocus/onBlur/onKeyDown/onKeyUp to Pressable (#962) 2022-01-18 22:36:38 -08:00
processor Moving the android specific changes to patch files and reverting them… (#254) 2020-03-18 18:20:08 -07:00
repo-config Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
scripts Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
stubs/glog put RN58 back 2019-03-28 13:44:57 -07:00
template Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
third-party-podspecs Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
tools/build_defs Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
v8-docker-build Initial commit of internal changes. 2019-03-01 10:09:07 -08:00
website/server Remove deprecated CheckBox module. (#801) 2021-07-14 15:34:49 -07: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 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
.flowconfig.android Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
.flowconfig.macos Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
.gitattributes Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
.github.flowconfig.android Add test to sync RN github flow configs 2018-08-13 21:38:58 +01:00
.gitignore Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
.prettierignore Moving the android specific changes to patch files and reverting them… (#254) 2020-03-18 18:20:08 -07:00
.prettierrc Update various Xplat Prettier configs to specify arrowParens: avoid 2020-09-14 18:36:20 -07:00
BUCK Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08: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 Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
ECOSYSTEM.md docs: fix url for chainreactconf (#30199) 2020-10-19 07:35: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
README.md Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
React-Core.podspec Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
React.podspec Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
Releases.md Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
build.gradle.kts Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
cli.js Show full price instead of monthly price within the lead form 2019-03-28 16:07:19 -07:00
gradle.properties Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
gradlew v0.63 sync from upstream (#613) 2020-09-30 18:38:06 +02:00
gradlew.bat Don't pass nil objects into error logging dictionary (#928) 2021-12-16 15:35:25 -08:00
index.js Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
interface.js Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
jest-preset.js Merge commit 'a77f2c40d1044da63426078f356cfc7c1284a79e' into amgleitman/0.64-merge-head 2021-08-31 13:44:36 -07:00
jest.config.js Merge commit '93e7a7a70dc2f41fccd3c1e4cce80d92913c4243' into amgleitman/0.64-merge-head 2021-09-16 18:53:41 -07:00
metro.config.js Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
package.json Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
react-native.config.js Merge commit '63992c0b96ec45e4dfb37eaea8535c06833ab298' into amgleitman/0.64-merge-head 2021-09-13 17:26:51 -07:00
react.gradle Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
rn-get-polyfills.js Create `@react-native/polyfills` package. 2020-07-22 03:02:45 -07:00
runXcodeTests.sh Migrating RNTester to Packages Directory (#29567) 2020-08-19 17:57:08 -07:00
settings.gradle.kts Merge 0.66 into master (#951) 2022-01-14 13:11:09 -08:00
template.config.js Merge from upstream through 2020-05-28 (#811) 2021-08-16 14:00:00 -07:00
yarn.lock Merge 0.66 into master (#951) 2022-01-14 13:11:09 -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

The full documentation for React Native can be found on our 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.

🚀 Upgrading

Upgrading to new versions of React Native may give you access to more APIs, views, developer tools, and other goodies. See the Upgrading Guide for instructions.

React Native releases are discussed in the React Native Community, @react-native-community/react-native-releases.

👏 How to Contribute

You can read more about the macOS implementation on 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 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

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 its 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.