The Wayback Machine - https://web.archive.org/web/20190501132329/https://github.com/facebook/react-native
Skip to content
A framework for building native apps with React.
Branch: master
Clone or download
timwangdev and facebook-github-bot Use class canonical name for PARTIAL_WAKE_LOCK tag (#24673)
Summary:
When acquiring the `PARTIAL_WAKE_LOCK`, Android requires a tag to identify the source, normally the class name. This tag will show on dumpsys call and Google Play developer console.

`getSimpleName` will work fine as long as not enable ProGuard, in my case, it transformed the class name to just `"c"`, and I take my half day to find where the `c` comes from.

`getCanonicalName` will add the package path, which is more friendly for developers.

Later we can even let the developer choose the tag name, but this will require API break changes.

[Android] [Changed] - Use class canonical name for PARTIAL_WAKE_LOCK tag
Pull Request resolved: #24673

Differential Revision: D15164306

Pulled By: cpojer

fbshipit-source-id: fd65f9e5250c180b0053940b17877fe36af5d48b
Latest commit 88dbb45 May 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.appveyor add flow check to windows ci (#21401) Apr 5, 2019
.circleci Use Xcode 10.2.0 and iOS 12.2 in iOS tests (#24572) Apr 24, 2019
.github Use Backlog label to keep issues open (#23789) Mar 12, 2019
IntegrationTests Support callbacks in synchronous native functions Apr 8, 2019
Libraries Do not throw on empty registered headless task (#24671) May 1, 2019
RNTester Re-enable testBundleURL test in open source Apr 30, 2019
React cleanup RedBox message and stack output (#24662) Apr 30, 2019
ReactAndroid Use class canonical name for PARTIAL_WAKE_LOCK tag (#24673) May 1, 2019
ReactCommon Expose first implementation of the legacy method UIManager.measureInW… May 1, 2019
bots Add SUPPORT document, update other GitHub templates (#23778) Mar 6, 2019
flow-typed/npm remove deprecated utilities Jan 15, 2019
flow add getEnv to jest's type definition Apr 9, 2019
gradle/wrapper bump Gradle to 5.4.1 (#24542) Apr 27, 2019
jest Remove out-of-tree platform tests (#24536) Apr 24, 2019
keystores Use fb_native_wrapper for all targets Oct 31, 2018
lib Update copyright headers to yearless format Sep 11, 2018
local-cli Update references to the CLI (#23052) Jan 21, 2019
packages Bump @react-native-community/eslint-config version (#24650) Apr 30, 2019
scripts Allow arbitrary location for third-party iOS dependency cache Apr 30, 2019
template bump android gradle plugin to 3.4.0 (#24463) Apr 27, 2019
third-party-podspecs Fabric: working podspecs & works in RNTester (#23803) Mar 16, 2019
tools/build_defs Migration of RN-Android OSS tests to Android X Mar 17, 2019
.buckconfig Bump Android SDK to 28, Build Tools to 28.0.2, Gradle to 4.7, Gradle … Dec 5, 2018
.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 editorconfig: Set indent_size for BUCK files to 4 (#21554) Oct 9, 2018
.eslintignore Eliminate eslint npm version mismatch warnings and bump some to latest ( Mar 19, 2019
.eslintrc Rename eslint config to 'eslint-config-react-native-community' (#23718) Mar 4, 2019
.flowconfig Deploy 0.97.0 to xplat Apr 15, 2019
.flowconfig.android Deploy 0.97.0 to xplat Apr 15, 2019
.gitattributes Added a .gitattributes file, ensuring that Bash script source files (… Oct 14, 2015
.gitignore Add CocoaPods Podfile to the project template (#23563) Mar 22, 2019
.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 Update repo documentation to match other Facebook projects Sep 11, 2018
CONTRIBUTING.md Update repo documentation to match other Facebook projects Sep 11, 2018
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 Add document describing the RN ecosystem. (#24493) Apr 17, 2019
React.podspec Move iOS Geolocation code out from the repo Apr 2, 2019
Releases.md Fix typo in Releases.md (#20487) Aug 1, 2018
build.gradle.kts Gradle KTS (#24631) Apr 29, 2019
cli.js Show full price instead of monthly price within the lead form Mar 28, 2019
gradlew bump Gradle to 5.4.1 (#24542) Apr 27, 2019
gradlew.bat bump Gradle to 5.4.1 (#24542) Apr 27, 2019
jest-preset.js Make Jest transform @react-native-community packages by default (#24294) Apr 3, 2019
jest.config.js extract jest config from package.json (#23638) Feb 26, 2019
metro.config.js Use latest React Native CLI (#24517) Apr 24, 2019
package.json Fix `test_javascript` e2e tests (#24658) Apr 30, 2019
react-native.config.js Use latest React Native CLI (#24517) Apr 24, 2019
react.gradle bump android gradle plugin to 3.4.0 (#24463) Apr 27, 2019
rn-get-polyfills.js Remove Polyfills from RN Open Source Apr 4, 2019
runXcodeTests.sh Update copyright headers to yearless format Sep 11, 2018
settings.gradle.kts Gradle KTS (#24631) Apr 29, 2019
template.config.js Improvement: Adjust template to match new init command (#24138) Apr 1, 2019
yarn.lock Set the Prettier config so it is not forced on users of @react-native… Apr 29, 2019

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 Appveyor 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 own 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 9.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 bugfixes 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.