Skip to content
A framework for building native apps with React.
JavaScript Java C++ Objective-C Objective-C++ Starlark Other
Branch: master
Clone or download

Latest commit

sammy-SC and facebook-github-bot Force JS inspector to form stacking context
Summary:
Changelog: [Internal]

# Problem

JS inspector overlay gets flattened, therefore `onResponderMove` callback isn't called. JS inspector depends on `onResponderMove` because that's how it knows where on screen user has tapped.

https://our.intern.facebook.com/intern/diffusion/FBS/browse/master/xplat/js/react-native-github/Libraries/Inspector/InspectorOverlay.js?commit=2e9ab04b039a&lines=58

# Workaround

This is just a hack to get it working, setting nativeID forces stacking context to be created and therefore view not being flattened.

Reviewed By: mdvacca

Differential Revision: D21816513

fbshipit-source-id: 83aedbfaecdce22cfe202241cbe91cecb914ed6b
Latest commit ee39945 Jun 1, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci Upgrade tests to Xcode 11.3.1 (#28498) Apr 3, 2020
.github label-actions: Add canned response for upgrade issues Apr 14, 2020
IntegrationTests Upgrade Prettier in Xplat to version 1.19.1 Apr 9, 2020
Libraries Force JS inspector to form stacking context Jun 1, 2020
RNTester mark 'force' as optional property of PressEvent object (#29006) May 30, 2020
React Fabric: Calling JSVM GC on memory pressure event on iOS (second attempt) May 30, 2020
ReactAndroid fix using deprecated constants in Android API Level 29 May 29, 2020
ReactCommon A corner case check in `Instance::handleMemoryPressure` May 30, 2020
bots Loosen up restrictions for internal changelogs (#28486) Apr 2, 2020
docs Generate doc info for RN components Sep 20, 2019
flow-typed/npm Remove outdated metro type definitions Apr 22, 2020
flow Back out "Upgrade Prettier from 1.17 to 2.0.2." Mar 25, 2020
gradle/wrapper Update Gradle Wrapper to 6.3 (#28173) Apr 10, 2020
jest deploy Flow 0.125.1 to xplat May 19, 2020
keystores Use fb_native_wrapper for all targets Oct 31, 2018
local-cli Update references to the CLI (#23052) Jan 21, 2019
packages Update to eslint 6.8 May 29, 2020
scripts Remove flow-node requirement from native modules codegen script May 21, 2020
template remove suppress_comments from xplat flowconfigs May 19, 2020
third-party-podspecs Upgrade Folly to v2020.01.13.00 (#27810) Jan 21, 2020
tools/build_defs Migrate react-native Android tests to Robolectric v4 (#28927) May 27, 2020
.buckconfig Buck: Use Android SDK 29 during build (#28455) Mar 31, 2020
.buckjavaargs limiting BUCK's memory for CI Feb 1, 2016
.clang-format Moving ObjC specific clang-format rules to the common config Feb 11, 2019
.editorconfig https link to EditorConfig.org (#25267) Jun 18, 2019
.eslintignore Codegen: Add prepublish script to build Flow files (#28827) May 8, 2020
.eslintrc Add ES Lint rules for `DynamicColorIOS()`and `ColorAndroid()` (#28398) Mar 28, 2020
.flowconfig remove suppress_comments from xplat flowconfigs May 19, 2020
.flowconfig.android remove suppress_comments from xplat flowconfigs May 19, 2020
.gitattributes Re-sync with internal repository Mar 14, 2020
.gitignore Codegen: Add prepublish script to build Flow files (#28827) May 8, 2020
.nvmrc Add .nvmrc + fix node version for eslint 5 compat (#20109) Jul 31, 2018
.prettierrc Set the Prettier config so it is not forced on users of @react-native… Apr 29, 2019
CODE_OF_CONDUCT.md Adopt Contributor Covenant Aug 30, 2019
CONTRIBUTING.md mention RNTester app in contributor guide (#28042) Mar 31, 2020
ECOSYSTEM.md Add document describing the RN ecosystem. (#24493) Apr 17, 2019
LICENSE Update copyright headers to yearless format Sep 11, 2018
LICENSE-docs More licenses Mar 25, 2015
README.md feat: migrate appveyor to circleci (#28245) Mar 30, 2020
React-Core.podspec Introduce NativeModulePerfLogger May 14, 2020
React.podspec Updating the URLs to point at new domain name reactnative.dev Feb 24, 2020
Releases.md Fix typo in Releases.md (#20487) Aug 1, 2018
build.gradle.kts add Detox integrations to Android RNTester app Feb 11, 2020
cli.js Show full price instead of monthly price within the lead form Mar 28, 2019
gradlew Applied missing changes from bumping Gradle wrapper to 6.0.1 (#27639) Jan 13, 2020
gradlew.bat Update Gradle Wrapper to 6.3 (#28173) Apr 10, 2020
index.js RN: Create `RootTag` Type Apr 22, 2020
interface.js Move `react-native-implementation.js` to `index.js` Sep 12, 2019
jest-preset.js Delete hasteImpl, providesModuleNodeModules, and modulePathNameMapper ( Jun 5, 2019
jest.config.js Tidy up license headers [3/n] Oct 16, 2019
metro.config.js fix warning of root metro config (#27883) Jan 29, 2020
package.json Update to eslint 6.8 May 29, 2020
react-native.config.js Tidy up license headers [2/n] Oct 16, 2019
react.gradle Update react.gradle (#28776) Apr 28, 2020
rn-get-polyfills.js Remove Polyfills from RN Open Source Apr 4, 2019
runXcodeTests.sh Move non-license comments out of license header Oct 16, 2019
settings.gradle.kts Tidy up license headers Oct 22, 2019
template.config.js imp: Add titlePlaceholder in template.config.js (#26218) May 12, 2020
yarn.lock Update to eslint 6.8 May 29, 2020

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.

You can’t perform that action at this time.