A framework for building native macOS apps with React.
Перейти к файлу
Mi-ZAZ 8933724d7d Update RCTModalHostViewManager.m (#29745)
Summary:
Fix a issue that RCTModalHostView can't be dismissed while being presented

Steps To Reproduce
A native modal presented view controller is being dismissed before the first screen shows.
A RCTModalHostView is presented when the first screen shows.
The RCTModalHostView will be dismissed after an asynchronous callback.
If the callback was called before the completion of the presenting animation, the RCTModalHostView will not be dismissed.

## Changelog

[iOS] [Fixed] - Fix that RCTModalHostView can't be dismissed while being presented

Pull Request resolved: https://github.com/facebook/react-native/pull/29745

Reviewed By: shergin

Differential Revision: D23566487

Pulled By: sammy-SC

fbshipit-source-id: bd95f200b79fa75e2387e402091d58c0f538759c
2020-09-09 06:41:06 -07:00
.circleci Bump brew cache key (#29843) 2020-09-03 09:32:28 -07:00
.github label-actions: Add canned response for upgrade issues 2020-04-14 15:34:44 -07:00
IntegrationTests RN: Remove `fbjs/requestAnimationFrame` Dependency 2020-08-25 14:15:35 -07:00
Libraries TextInput: Add `onPressIn` and `onPressOut` 2020-09-08 15:57:07 -07:00
React Update RCTModalHostViewManager.m (#29745) 2020-09-09 06:41:06 -07:00
ReactAndroid Set selection to end of text input on accessibility click 2020-09-02 16:17:02 -07:00
ReactCommon Fabric: Enable zIndex only for non-`static`-positioned views 2020-09-07 11:51:20 -07:00
bots Migrating RNTester to Packages Directory (#29567) 2020-08-19 17:57:08 -07:00
docs Generate doc info for RN components 2019-09-19 18:36:25 -07:00
flow RN: Remove `fbjs` Dependency 2020-08-28 12:16:26 -07:00
flow-typed/npm Migrate large amount of modules to flow strict and strict-local 2020-07-22 09:46:16 -07:00
gradle/wrapper Use Gradle Wrapper 6.6 (-all variant) (#29793) 2020-09-01 17:09:27 -07:00
jest Correctly mock all components by setting the displayName 2020-07-28 13:09:06 -07:00
keystores Use fb_native_wrapper for all targets 2018-10-31 11:47:42 -07:00
local-cli Update references to the CLI (#23052) 2019-01-21 09:13:08 -08:00
packages Remove .gitattributes and normalize line endings (#29792) 2020-09-04 13:44:40 -07:00
repo-config Deploy Flow v0.133.0 2020-09-03 16:02:37 -07:00
scripts Remove .gitattributes and normalize line endings (#29792) 2020-09-04 13:44:40 -07:00
template Remove .gitattributes and normalize line endings (#29792) 2020-09-04 13:44:40 -07:00
third-party-podspecs Upstream RN macOS Hermes integration bits (#29748) 2020-08-27 01:18:33 -07:00
tools/build_defs Move powermock config target to xplat and make fb_java_library non-fbandroid-specific 2020-06-25 07:07:27 -07:00
.buckconfig Fix RNTester Path (#29786) 2020-09-01 18:47:08 -07:00
.buckjavaargs
.clang-format Moving ObjC specific clang-format rules to the common config 2019-02-11 13:07:09 -08:00
.editorconfig https link to EditorConfig.org (#25267) 2019-06-18 01:58:07 -07:00
.eslintignore Codegen: Add prepublish script to build Flow files (#28827) 2020-05-08 15:41:35 -07:00
.eslintrc Migrating RNTester to Packages Directory (#29567) 2020-08-19 17:57:08 -07:00
.flowconfig Deploy Flow v0.133.0 2020-09-03 16:02:37 -07:00
.flowconfig.android Deploy Flow v0.133.0 2020-09-03 16:02:37 -07:00
.gitignore Allow Hermes to be built as a DLL on Windows 2020-08-24 06:07:19 -07:00
.nvmrc
.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
CODE_OF_CONDUCT.md Adopt Contributor Covenant 2019-08-29 23:21:10 -07:00
CONTRIBUTING.md Fix RNTester Path (#29786) 2020-09-01 18:47:08 -07:00
ECOSYSTEM.md Update ECOSYSTEM.md to reflect updated partnerships (#29527) 2020-07-30 11:18:45 -07:00
LICENSE Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
LICENSE-docs
README.md feat: migrate appveyor to circleci (#28245) 2020-03-30 07:24:57 -07:00
React-Core.podspec Upstream RN macOS Hermes integration bits (#29748) 2020-08-27 01:18:33 -07:00
React.podspec Updating the URLs to point at new domain name reactnative.dev 2020-02-24 13:09:11 -08:00
Releases.md Fix typo in Releases.md (#20487) 2018-08-01 07:16:56 -07:00
build.gradle.kts Update Android Gradle plugin to 3.6.4 (#28170) 2020-08-27 16:28:28 -07:00
cli.js Show full price instead of monthly price within the lead form 2019-03-28 16:07:19 -07:00
gradle.properties Android Gradle: remove configureondemand property 2020-09-03 19:13:00 -07:00
gradlew Update Gradle Wrapper to 6.6 (#29613) 2020-08-26 16:37:20 -07:00
gradlew.bat Update Gradle Wrapper to 6.6 (#29613) 2020-08-26 16:37:20 -07:00
index.js EventEmitter: Default Export `{Native,RCTDevice}EventEmitter` 2020-08-27 17:52:44 -07:00
interface.js Move `react-native-implementation.js` to `index.js` 2019-09-12 03:29:51 -07:00
jest-preset.js Create `@react-native/polyfills` package. 2020-07-22 03:02:45 -07:00
jest.config.js RN: Remove `fbjs` Dependency 2020-08-28 12:16:26 -07:00
metro.config.js fix warning of root metro config (#27883) 2020-01-29 03:53:42 -08:00
package.json Deploy Flow v0.133.0 2020-09-03 16:02:37 -07:00
react-native.config.js Migrating RNTester to Packages Directory (#29567) 2020-08-19 17:57:08 -07:00
react.gradle codegen Gradle: introduce com.facebook.react.codegen plugin to replace architecture.gradle script 2020-08-12 11:12:43 -07: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 Migrating RNTester to Packages Directory (#29567) 2020-08-19 17:57:08 -07:00
template.config.js imp: Add titlePlaceholder in template.config.js (#26218) 2020-05-12 09:09:23 -07:00
yarn.lock Deploy Flow v0.133.0 2020-09-03 16:02:37 -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 10.0 and Android 4.1 (API 16) 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 the React Native Community, @react-native-community/react-native-releases.

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