A framework for building native macOS apps with React.
Перейти к файлу
Joshua Gross 5ae8e84dc7 Fix IntBufferMountItem optimization + LayoutAnimation bug
Summary:
The new IntBufferMountItem queueing actually enforces a global ordering of mutation types: CREATEs, then INSERT, then REMOVE, then UPDATE, then DELETE.

See comments for more details. In general this ordering is fine, but if a DELETE animation is in progress and (due to view unflattening) the same view is recreated, the CREATE will be executed and then the in-process DELETE (since conflicting animations get flushed).

To mitigate this, in Binding we detect this and simply remove DELETE operations queued when we detect that we want to CREATE the node. `DELETE...CREATE` is valid but `CREATE...DELETE` in a single frame is not, so this is safe.

This does complicate and add more assumptions to Binding than I would like, but it should unblock us for now.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D26271299

fbshipit-source-id: 9453fe17b8b541e484a047dc9637674dbdcc8e9a
2021-02-05 00:57:40 -08:00
.circleci Try to install the SDK up to 3 times (#30742) 2021-02-03 15:01:56 -08:00
.github Fix reactiflux url (#30709) 2021-01-14 14:58:10 -08:00
IntegrationTests Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08:00
Libraries Fabric: Fix DevTools Inspector 2021-02-04 17:17:17 -08:00
React Fabric: Support for `setIsJSResponder`, all the native changes 2021-02-04 13:16:29 -08:00
ReactAndroid Fix IntBufferMountItem optimization + LayoutAnimation bug 2021-02-05 00:57:40 -08:00
ReactCommon fix rounding for translation to android/ios colors 2021-02-04 14:18:41 -08:00
bots Add Java linting using google-java-format (#30444) 2020-12-07 03:12:35 -08: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 misc Flow library fixes & suppressions 2021-01-19 11:55:09 -08:00
gradle/wrapper Bump Gradle Wrapper to 6.7 (#30200) 2020-10-27 23:35:51 -07:00
jest Remove "use strict" directive from ES Modules 2021-02-02 11:12:56 -08: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 Bump react-native-codegen to 0.0.7 2021-02-04 17:35:57 -08:00
repo-config Deploy Flow v0.143.1 2021-01-22 18:16:50 -08:00
scripts Invoke `node` directly in generate-specs.sh (#30781) 2021-02-02 15:10:48 -08:00
template Deploy Flow v0.143.1 2021-01-22 18:16:50 -08:00
third-party-podspecs Fix use_framework RNTester crash (#30520) 2020-12-03 16:01:47 -08:00
tools/build_defs Make rn_xplat_cxx_library and rn_apple_library target iOS 11 2021-02-01 16:34:57 -08:00
.buckconfig Fix RNTester Path (#29786) 2020-09-01 18:47:08 -07: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 https link to EditorConfig.org (#25267) 2019-06-18 01:58:07 -07:00
.eslintignore Lint: fix few "no-unused-var" warnings for imports (#30157) 2020-10-26 17:19:14 -07:00
.eslintrc Open source react-native-modules ESLint rule 2020-09-22 11:32:37 -07:00
.flowconfig Deploy Flow v0.143.1 2021-01-22 18:16:50 -08:00
.flowconfig.android Deploy Flow v0.143.1 2021-01-22 18:16:50 -08:00
.gitignore Make codegen more reliable on iOS (#30792) 2021-02-01 14:39:25 -08:00
.prettierrc Update various Xplat Prettier configs to specify arrowParens: avoid 2020-09-14 18:36:20 -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 docs: fix url for chainreactconf (#30199) 2020-10-19 07:35:37 -07:00
LICENSE Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
LICENSE-docs More licenses 2015-03-24 19:59:10 -07:00
README.md Bump min supported iOS/Android version to 11/19 2021-01-14 15:45:52 -08:00
React-Core.podspec Make codegen more reliable on iOS (#30792) 2021-02-01 14:39:25 -08:00
React.podspec Delete iOS10/tvOS10 support from React Native Libraries 2021-01-11 16:46:16 -08:00
Releases.md Fix typo in Releases.md (#20487) 2018-08-01 07:16:56 -07:00
build.gradle.kts WIP: Add an explicit NDK version to RNTester and ReactAndroid (#29987) 2021-01-04 09:15:08 -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 WIP: Add an explicit NDK version to RNTester and ReactAndroid (#29987) 2021-01-04 09:15:08 -08: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 chore: updated url of deprecated modules (#30422) 2020-11-19 20:36:07 -08:00
interface.js restore core lib Flow definitions for Request, Response, etc. 2021-01-06 17:24:51 -08: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 Codegen Android: update Docker configuration to support codegen (#30268) 2020-10-28 21:48:20 -07:00
package.json Deploy Flow v0.143.1 2021-01-22 18:16:50 -08:00
react-native.config.js Migrating RNTester to Packages Directory (#29567) 2020-08-19 17:57:08 -07:00
react.gradle Don't minify JS bundle by default when using hermes (#30496) 2020-12-01 17:17:06 -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 Codegen Android: build react-native-codegen via yarn when building from source 2020-10-26 23:47:54 -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.143.1 2021-01-22 18:16:50 -08: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 11.0 and Android 5.0 (API 21) 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.