A framework for building native applications using React
Go to file
Nicola Corti cf914e412d RNGP - Autolinking. Add support for linking projects. (#44799)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/44799

This is the final part of core autolinking:
1. I split RNGP into an `app-plugin` and a `settings-plugin`. This was necessary as the Gradle modules need to be loaded inside the settings.gradle.kts.
2. I've introduced a Settings Plugin to take care of either invoking the `config` command from CLI or receiving a file in input.
3. I've removed the former `RunAutolinkingConfigTask` as now the command is invoked inside the settings plugin
4. I've added hashing computed based on the lockfiles so we won't be re-executing teh `config` command if the lockfiles are not changed.
5. I've updated RN-Tester to use the core autolinking rather than manual linking for the 2 libraries it's using.

Changelog:linking
[Internal] [Changed] - RNGP - Autolinking. Add support for linking projects

Reviewed By: blakef

Differential Revision: D58190363

fbshipit-source-id: 6ab8b36729e77ca715f50a4a00aa0ca4eb5b63b1
2024-06-07 10:32:16 -07:00
.bundle
.circleci Remove Nightlies (#44830) 2024-06-07 05:32:44 -07:00
.github Handle lowercase->uppercase of hermes ios artifacts (#44836) 2024-06-07 08:38:04 -07:00
flow-typed/npm fix rxjs flow types linting warnings (#44719) 2024-05-30 08:20:00 -07:00
gradle Gradle to 8.8 (#44786) 2024-06-04 14:51:39 -07:00
jest Set BUILD_EXCLUDE_BABEL_REGISTER: true under Jest tests (#42690) 2024-01-27 06:49:15 -08:00
packages RNGP - Autolinking. Add support for linking projects. (#44799) 2024-06-07 10:32:16 -07:00
scripts chore(ci): Set retryOnFailure for RNTester iOS Unit and Integration tests (#44642) 2024-05-30 07:24:35 -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 RNGP - Autolinking. Add support for linking projects. (#44799) 2024-06-07 10:32:16 -07:00
.prettierignore Fixes enum codegen value cases (#44654) 2024-06-07 07:53:59 -07:00
.prettierrc Also parse js.flow files with hermes-parser (#39048) 2023-08-16 11:27:13 -07:00
build.gradle.kts Bump NDK to 26.1 (#42656) 2024-01-26 00:34:55 -08: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
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
LICENSE Re-add the top level LICENSE file (#37916) 2023-06-15 13:14:17 -07:00
LICENSE-docs
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 Add VS Code workspace config (#43851) 2024-04-04 09:04:20 -07:00
README.md docs: bump minSdk to 23 (#42034) 2023-12-21 22:29:00 -08:00
runXcodeTests.sh
settings.gradle.kts RNGP - Autolinking. Add support for linking projects. (#44799) 2024-06-07 10:32:16 -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

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.