A framework for building native macOS apps with React.
Перейти к файлу
Pieter Vanderwerff f7aea0c8e1 Fork onPress callbacks for ios highlighting (#44909)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/44909

Today we wrap all `onPressIn` and `onPressOut` callbacks we pass to pressability so we can set the `highlighted` state. However highlighted state is only ever set to anything other that false on iOS. This change not only skips calling `setHighlighted(false)` on every press event but also skips wrapping the callback.

Changelog: [Internal]

Reviewed By: yungsters

Differential Revision: D58391419

fbshipit-source-id: e79f51469609a59063098501f015f8078e3db79f
2024-06-12 19:12:15 -07:00
.bundle
.circleci feat: build visionos hermes binary on the CI (#44691) 2024-06-10 04:52:24 -07:00
.github disable on PRs (#44912) 2024-06-12 14:41:25 -07:00
flow-typed/npm fix rxjs flow types linting warnings (#44719) 2024-05-30 08:20:00 -07:00
gradle/wrapper Setup publishing of Gradle Scans on GHA (#44879) 2024-06-12 03:47:00 -07:00
jest Set BUILD_EXCLUDE_BABEL_REGISTER: true under Jest tests (#42690) 2024-01-27 06:49:15 -08:00
packages Fork onPress callbacks for ios highlighting (#44909) 2024-06-12 19:12:15 -07:00
scripts Migrate the Prepare Release workflow (#44833) 2024-06-10 09:49:45 -07:00
tools Build and sync lint/sort-imports from WWW (#44824) 2024-06-07 10:01:49 -07:00
.babelrc Move react-native-babel-transformer and react-native-babel-preset from Metro to React Native repo (#38228) 2023-07-27 11:48:16 -07:00
.clang-format Add QualifierAlignment to Clang Format Config (#44098) 2024-04-15 16:03:26 -07:00
.editorconfig
.eslintignore directly call community-cli-plugin in react-native-xcode.sh (#44721) 2024-06-05 09:08:16 -07:00
.eslintrc.js CLI supports ordering of tasks 2024-04-29 05:04:26 -07:00
.flowconfig Fixes enum codegen value cases (#44654) 2024-06-07 07:53:59 -07:00
.gitignore Format code-workspace file, clarify use of .vscode/ dir (#44874) 2024-06-11 09:27:48 -07:00
.prettierignore Fixes enum codegen value cases (#44654) 2024-06-07 07:53:59 -07:00
.prettierrc Format code-workspace file, clarify use of .vscode/ dir (#44874) 2024-06-11 09:27:48 -07:00
CHANGELOG-pre-060.md split the changelog into decades (#38017) 2023-06-22 04:19:40 -07:00
CHANGELOG-pre-070.md Remove duplicate changelog entry (#38177) 2023-07-05 09:32:10 -07:00
CHANGELOG.md Add changelog for 0.74.2 (#44784) 2024-06-04 10:49:57 -07:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
ECOSYSTEM.md Add @getsentry to React Native incubating partners list (#38091) 2023-06-27 10:48:43 -07:00
Gemfile Bump minimum version of activesupport for CVE-2023-38037 (#42023) 2023-12-21 10:08:28 -08:00
Gemfile.lock Bump minimum version of activesupport for CVE-2023-38037 (#42023) 2023-12-21 10:08:28 -08:00
LICENSE
LICENSE-docs
README.md docs: bump minSdk to 23 (#42034) 2023-12-21 22:29:00 -08:00
build.gradle.kts Bump NDK to 26.1 (#42656) 2024-01-26 00:34:55 -08:00
gradle.properties Bump AGP to 8.1.1 (#39392) 2023-09-12 09:21:08 -07:00
gradlew Gradle to 8.8 (#44786) 2024-06-04 14:51:39 -07:00
gradlew.bat Bump Gradle to 8.6 2024-02-08 06:24:40 -08:00
jest.config.js RN: Cleanup `ReactNativeInternalFeatureFlagsMock` (#44445) 2024-05-08 07:14:05 -07:00
package.json Update hermes-parser and related packages in fbsource to 0.22.0 (#44804) 2024-06-06 02:35:20 -07:00
react-native.code-workspace Format code-workspace file, clarify use of .vscode/ dir (#44874) 2024-06-11 09:27:48 -07:00
runXcodeTests.sh
settings.gradle.kts Setup publishing of Gradle Scans on GHA (#44879) 2024-06-12 03:47:00 -07:00
yarn.lock Update hermes-parser and related packages in fbsource to 0.22.0 (#44804) 2024-06-06 02:35:20 -07:00

README.md

React Native

Learn once, write anywhere:
Build mobile apps with React.

React Native is released under the MIT license. Current CircleCI build status. Current npm package version. PRs welcome! Follow @reactnative

Getting Started · Learn the Basics · Showcase · Contribute · Community · Support

React Native brings React's declarative UI framework to iOS and Android. With React Native, you use native UI controls and have full access to the native platform.

  • Declarative. React makes it painless to create interactive UIs. Declarative views make your code more predictable and easier to debug.
  • Component-Based. Build encapsulated components that manage their state, then compose them to make complex UIs.
  • Developer Velocity. See local changes in seconds. Changes to JavaScript code can be live reloaded without rebuilding the native app.
  • Portability. Reuse code across iOS, Android, and other platforms.

React Native is developed and supported by many companies and individual core contributors. Find out more in our ecosystem overview.

Contents

📋 Requirements

React Native apps may target iOS 13.4 and Android 6.0 (API 23) or newer. You may use Windows, macOS, or Linux as your development operating system, though building and running iOS apps is limited to macOS. Tools like Expo can be used to work around this.

🎉 Building your first React Native app

Follow the Getting Started guide. The recommended way to install React Native depends on your project. Here you can find short guides for the most common scenarios:

📖 Documentation

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 this discussion repo.

👏 How to Contribute

The main purpose of this repository is to continue evolving React Native core. We want to make contributing to this project as easy and transparent as possible, and we are grateful to the community for contributing bug fixes and improvements. Read below to learn how you can take part in improving React Native.

Code of Conduct

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our Contributing Guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to React Native.

Open Source Roadmap

You can learn more about our vision for React Native in the Roadmap.

Good First Issues

We have a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.

Discussions

Larger discussions and proposals are discussed in @react-native-community/discussions-and-proposals.

📄 License

React Native is MIT licensed, as found in the LICENSE file.

React Native documentation is Creative Commons licensed, as found in the LICENSE-docs file.