mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Update repository references on 0.86 (#57666)
This commit is contained in:
1 parent
5b9e949a5a
commit
6766cc3655
196 files changed
+7079
-7079
No files matched your search
@@ -1,4 +1,4 @@
|
||||
✋ To keep the backlog clean and actionable, issues will be
|
||||
🚫 closed if they do not follow one of the issue templates:
|
||||
👉 https://github.com/facebook/react-native/issues/new/choose
|
||||
👉 https://github.com/react/react-native/issues/new/choose
|
||||
|
||||
@@ -16,11 +16,11 @@ body:
|
||||
* If you're found a problem with our **documentation**, [report it here](https://github.com/facebook/react-native-website/issues/).
|
||||
* If you're having an issue with **Metro** (the bundler), [report it here](https://github.com/facebook/metro/issues/).
|
||||
* If you're using an external library, report the issue to the **library first**.
|
||||
* Please [search for similar issues](https://github.com/facebook/react-native/issues) in our issue tracker.
|
||||
* Please [search for similar issues](https://github.com/react/react-native/issues) in our issue tracker.
|
||||
|
||||
Make sure that your issue:
|
||||
* Have a **valid reproducer** (See [How to report a bug](https://reactnative.dev/contributing/how-to-report-a-bug)).
|
||||
* Is tested against the [**latest stable**](https://github.com/facebook/react-native/releases/) of React Native.
|
||||
* Is tested against the [**latest stable**](https://github.com/react/react-native/releases/) of React Native.
|
||||
|
||||
🚨 IMPORTANT: Due to the extreme number of bugs we receive, issues **without a reproducer** or for an [**unsupported versions**](https://github.com/reactwg/react-native-releases#which-versions-are-currently-supported) of React Native **will be closed**.
|
||||
- type: textarea
|
||||
|
||||
@@ -16,9 +16,9 @@ body:
|
||||
* If you've found a problem with our **documentation**, [report it here](https://github.com/facebook/react-native-website/issues/).
|
||||
* If you're having an issue with **Metro** (the bundler), [report it here](https://github.com/facebook/metro/issues/).
|
||||
* If you're using an external library, report the issue to the **library first**.
|
||||
* Please [search for similar issues](https://github.com/facebook/react-native/issues) in our issue tracker.
|
||||
* Please [search for similar issues](https://github.com/react/react-native/issues) in our issue tracker.
|
||||
|
||||
Make sure that your issue is tested against the [**latest stable**](https://github.com/facebook/react-native/releases/) of React Native.
|
||||
Make sure that your issue is tested against the [**latest stable**](https://github.com/react/react-native/releases/) of React Native.
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
|
||||
@@ -12,12 +12,12 @@ body:
|
||||
Thank you for taking the time to report an issue for [the New Architecture of React Native](https://reactnative.dev/docs/the-new-architecture/landing-page),
|
||||
your contribution will help make the framework better for everyone.
|
||||
|
||||
If you're **NOT** using the New Architecture, please use this [other bug type](https://github.com/facebook/react-native/issues/new?template=bug_report.yml).
|
||||
If you're **NOT** using the New Architecture, please use this [other bug type](https://github.com/react/react-native/issues/new?template=bug_report.yml).
|
||||
Do not attempt to open a bug in this category if you're not using the New Architecture as your bug will be closed.
|
||||
|
||||
Make sure that your issue:
|
||||
* Have a **valid reproducer** (See [How to report a bug](https://reactnative.dev/contributing/how-to-report-a-bug)).
|
||||
* Is tested against the [**latest stable**](https://github.com/facebook/react-native/releases/) of React Native.
|
||||
* Is tested against the [**latest stable**](https://github.com/react/react-native/releases/) of React Native.
|
||||
|
||||
🚨 IMPORTANT: Due to the extreme number of bugs we receive, issues **without a reproducer** or for an [**unsupported versions**](https://github.com/reactwg/react-native-releases#which-versions-are-currently-supported) of React Native **will be closed**.
|
||||
- type: textarea
|
||||
|
||||
@@ -20,4 +20,4 @@ To help you upgrade to this version, you can use the [upgrade helper](https://re
|
||||
|
||||
---
|
||||
|
||||
See changes from this release in the [changelog PR](https://github.com/facebook/react-native/labels/%F0%9F%93%9D%20Changelog)
|
||||
See changes from this release in the [changelog PR](https://github.com/react/react-native/labels/%F0%9F%93%9D%20Changelog)
|
||||
+1
-1
@@ -15,7 +15,7 @@ The React Native website is hosted on a [separate repository](https://github.com
|
||||
|
||||
## 🐛 I found a bug in React Native.
|
||||
|
||||
If you want to report a reproducible bug or regression in the React Native library, you can [create a new issue](https://github.com/facebook/react-native/issues/new?labels=Type%3A+Bug+Report&template=bug_report.md). It's a good idea to look through [open issues](https://github.com/facebook/react-native/issues) before doing so, as someone else may have reported a similar issue.
|
||||
If you want to report a reproducible bug or regression in the React Native library, you can [create a new issue](https://github.com/react/react-native/issues/new?labels=Type%3A+Bug+Report&template=bug_report.md). It's a good idea to look through [open issues](https://github.com/react/react-native/issues) before doing so, as someone else may have reported a similar issue.
|
||||
|
||||
|
||||
## 🚀 I want to discuss the future of React Native.
|
||||
|
||||
@@ -38,7 +38,7 @@ describe('Create Draft Release', () => {
|
||||
);
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
'https://github.com/facebook/react-native/releases/tag/v0.77.1',
|
||||
'https://github.com/react/react-native/releases/tag/v0.77.1',
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -49,39 +49,39 @@ describe('Create Draft Release', () => {
|
||||
|
||||
## v0.77.2
|
||||
|
||||
- [PR #1234](https://github.com/facebook/react-native/pull/1234) - Some change
|
||||
- [PR #5678](https://github.com/facebook/react-native/pull/5678) - Some other change
|
||||
- [PR #1234](https://github.com/react/react-native/pull/1234) - Some change
|
||||
- [PR #5678](https://github.com/react/react-native/pull/5678) - Some other change
|
||||
|
||||
|
||||
## v0.77.1
|
||||
### Breaking Changes
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/facebook/react-native/pull/3457) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/react/react-native/pull/3457) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3436](https://github.com/facebook/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change
|
||||
- [PR #3436](https://github.com/react/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change
|
||||
|
||||
### Fixed
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change
|
||||
|
||||
|
||||
## v0.77.0
|
||||
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
|
||||
## v0.76.0
|
||||
|
||||
- [PR #7890](https://github.com/facebook/react-native/pull/7890) - Some other change`;
|
||||
- [PR #7890](https://github.com/react/react-native/pull/7890) - Some other change`;
|
||||
|
||||
jest.spyOn(fs, 'readFileSync').mockImplementationOnce(func => {
|
||||
return mockedReturnValue;
|
||||
@@ -89,24 +89,24 @@ describe('Create Draft Release', () => {
|
||||
const changelog = _extractChangelog('0.77.1');
|
||||
expect(changelog).toEqual(`## v0.77.1
|
||||
### Breaking Changes
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/facebook/react-native/pull/3457) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/react/react-native/pull/3457) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3436](https://github.com/facebook/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change
|
||||
- [PR #3436](https://github.com/react/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change
|
||||
|
||||
### Fixed
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change`);
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change`);
|
||||
});
|
||||
|
||||
it('does not extract changelog for rc.0', async () => {
|
||||
@@ -125,15 +125,15 @@ describe('Create Draft Release', () => {
|
||||
const version = '0.77.1';
|
||||
const changelog = `## v${version}
|
||||
### Breaking Changes
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/facebook/react-native/pull/3457) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/react/react-native/pull/3457) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3436](https://github.com/facebook/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change`;
|
||||
- [PR #3436](https://github.com/react/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change`;
|
||||
const body = _computeBody(changelog, version);
|
||||
|
||||
expect(body).toEqual(`${changelog}
|
||||
@@ -166,7 +166,7 @@ To help you upgrade to this version, you can use the [Upgrade Helper](https://re
|
||||
|
||||
---
|
||||
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/react-native/blob/main/CHANGELOG.md).`);
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/react/react-native/blob/main/CHANGELOG.md).`);
|
||||
});
|
||||
|
||||
it('computes body for release when hermes versions are passed', async () => {
|
||||
@@ -175,15 +175,15 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
const hermesV1Version = '250829098.0.2';
|
||||
const changelog = `## v${version}
|
||||
### Breaking Changes
|
||||
- [PR #9012](https://github.com/facebook/react-native/pull/9012) - Some other change
|
||||
- [PR #9012](https://github.com/react/react-native/pull/9012) - Some other change
|
||||
|
||||
#### Android
|
||||
- [PR #3456](https://github.com/facebook/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/facebook/react-native/pull/3457) - Some other change
|
||||
- [PR #3456](https://github.com/react/react-native/pull/3456) - Some other change
|
||||
- [PR #3457](https://github.com/react/react-native/pull/3457) - Some other change
|
||||
|
||||
#### iOS
|
||||
- [PR #3436](https://github.com/facebook/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/facebook/react-native/pull/3437) - Some other change`;
|
||||
- [PR #3436](https://github.com/react/react-native/pull/3436) - Some other change
|
||||
- [PR #3437](https://github.com/react/react-native/pull/3437) - Some other change`;
|
||||
const body = _computeBody(
|
||||
changelog,
|
||||
version,
|
||||
@@ -221,14 +221,14 @@ To help you upgrade to this version, you can use the [Upgrade Helper](https://re
|
||||
|
||||
---
|
||||
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/react-native/blob/main/CHANGELOG.md).`);
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/react/react-native/blob/main/CHANGELOG.md).`);
|
||||
});
|
||||
});
|
||||
|
||||
describe('#_createDraftReleaseOnGitHub', () => {
|
||||
it('creates a draft release on GitHub', async () => {
|
||||
const version = '0.77.1';
|
||||
const url = 'https://api.github.com/repos/facebook/react-native/releases';
|
||||
const url = 'https://api.github.com/repos/react/react-native/releases';
|
||||
const token = 'token';
|
||||
const headers = {
|
||||
Accept: 'Accept: application/vnd.github+json',
|
||||
@@ -253,7 +253,7 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
Promise.resolve({
|
||||
id: 1,
|
||||
html_url:
|
||||
'https://github.com/facebook/react-native/releases/tag/v0.77.1',
|
||||
'https://github.com/react/react-native/releases/tag/v0.77.1',
|
||||
}),
|
||||
}),
|
||||
);
|
||||
@@ -265,7 +265,7 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
);
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
`https://api.github.com/repos/facebook/react-native/releases`,
|
||||
`https://api.github.com/repos/react/react-native/releases`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
@@ -275,13 +275,13 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
expect(response).toEqual({
|
||||
id: 1,
|
||||
html_url:
|
||||
'https://github.com/facebook/react-native/releases/tag/v0.77.1',
|
||||
'https://github.com/react/react-native/releases/tag/v0.77.1',
|
||||
});
|
||||
});
|
||||
|
||||
it('creates a draft release for prerelease on GitHub', async () => {
|
||||
const version = '0.77.0-rc.2';
|
||||
const url = 'https://api.github.com/repos/facebook/react-native/releases';
|
||||
const url = 'https://api.github.com/repos/react/react-native/releases';
|
||||
const token = 'token';
|
||||
const headers = {
|
||||
Accept: 'Accept: application/vnd.github+json',
|
||||
@@ -306,7 +306,7 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
Promise.resolve({
|
||||
id: 1,
|
||||
html_url:
|
||||
'https://github.com/facebook/react-native/releases/tag/v0.77.1',
|
||||
'https://github.com/react/react-native/releases/tag/v0.77.1',
|
||||
}),
|
||||
}),
|
||||
);
|
||||
@@ -318,7 +318,7 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
);
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
`https://api.github.com/repos/facebook/react-native/releases`,
|
||||
`https://api.github.com/repos/react/react-native/releases`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
@@ -328,13 +328,13 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
expect(response).toEqual({
|
||||
id: 1,
|
||||
html_url:
|
||||
'https://github.com/facebook/react-native/releases/tag/v0.77.1',
|
||||
'https://github.com/react/react-native/releases/tag/v0.77.1',
|
||||
});
|
||||
});
|
||||
|
||||
it('throws if the post failes', async () => {
|
||||
const version = '0.77.0-rc.2';
|
||||
const url = 'https://api.github.com/repos/facebook/react-native/releases';
|
||||
const url = 'https://api.github.com/repos/react/react-native/releases';
|
||||
const token = 'token';
|
||||
const headers = {
|
||||
Accept: 'Accept: application/vnd.github+json',
|
||||
@@ -362,7 +362,7 @@ View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/
|
||||
).rejects.toThrowError();
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
`https://api.github.com/repos/facebook/react-native/releases`,
|
||||
`https://api.github.com/repos/react/react-native/releases`,
|
||||
{
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
|
||||
@@ -191,7 +191,7 @@ N/A`;
|
||||
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
'https://api.github.com/repos/facebook/react-native/pulls',
|
||||
'https://api.github.com/repos/react/react-native/pulls',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
@@ -203,7 +203,7 @@ N/A`;
|
||||
const currentVersion = '0.79.0-rc5';
|
||||
const token = 'token';
|
||||
const expectedPrURL =
|
||||
'https://github.com/facebook/react-native/pulls/1234';
|
||||
'https://github.com/react/react-native/pulls/1234';
|
||||
|
||||
const returnedObject = {
|
||||
status: 201,
|
||||
@@ -238,7 +238,7 @@ N/A`;
|
||||
|
||||
expect(mockFetch).toHaveBeenCalledTimes(1);
|
||||
expect(mockFetch).toHaveBeenCalledWith(
|
||||
'https://api.github.com/repos/facebook/react-native/pulls',
|
||||
'https://api.github.com/repos/react/react-native/pulls',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: headers,
|
||||
|
||||
@@ -84,7 +84,7 @@ module.exports = async (github, context, labelWithContext) => {
|
||||
case 'Needs: Issue Template':
|
||||
await addComment(
|
||||
`> [!WARNING]\n` +
|
||||
`> **Missing issue template**: It looks like your issue may be missing some necessary information. GitHub provides an example template whenever a [new issue is created](https://github.com/facebook/react-native/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A&projects=&template=bug_report.yml). Could you go back and make sure to fill out the template? You may edit this issue, or close it and open a new one.`,
|
||||
`> **Missing issue template**: It looks like your issue may be missing some necessary information. GitHub provides an example template whenever a [new issue is created](https://github.com/react/react-native/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A&projects=&template=bug_report.yml). Could you go back and make sure to fill out the template? You may edit this issue, or close it and open a new one.`,
|
||||
);
|
||||
await requestAuthorFeedback();
|
||||
return;
|
||||
@@ -105,7 +105,7 @@ module.exports = async (github, context, labelWithContext) => {
|
||||
case 'Needs: Repro':
|
||||
await addComment(
|
||||
`> [!WARNING]\n` +
|
||||
`> **Missing reproducer**: We could not detect a reproducible example in your issue report. Reproducers are **mandatory** and we can accept only one of those as a valid reproducer: <br/><ul><li>For majority of bugs: send us a Pull Request with the [RNTesterPlayground.js](https://github.com/facebook/react-native/blob/main/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js) edited to reproduce your bug.</li><li>If your bug is UI related: a [Snack](https://snack.expo.dev)</li><li> If your bug is build/upgrade related: a project using our [Reproducer Template](https://github.com/react-native-community/reproducer-react-native/generate)</li></ul><br/>You can read more about about it on our website: [How to report a bug](https://reactnative.dev/contributing/how-to-report-a-bug).`,
|
||||
`> **Missing reproducer**: We could not detect a reproducible example in your issue report. Reproducers are **mandatory** and we can accept only one of those as a valid reproducer: <br/><ul><li>For majority of bugs: send us a Pull Request with the [RNTesterPlayground.js](https://github.com/react/react-native/blob/main/packages/rn-tester/js/examples/Playground/RNTesterPlayground.js) edited to reproduce your bug.</li><li>If your bug is UI related: a [Snack](https://snack.expo.dev)</li><li> If your bug is build/upgrade related: a project using our [Reproducer Template](https://github.com/react-native-community/reproducer-react-native/generate)</li></ul><br/>You can read more about about it on our website: [How to report a bug](https://reactnative.dev/contributing/how-to-report-a-bug).`,
|
||||
);
|
||||
await requestAuthorFeedback();
|
||||
return;
|
||||
|
||||
@@ -21,6 +21,6 @@ if [ -x "$(command -v shellcheck)" ]; then
|
||||
-exec sh -c 'shellcheck "$1"' -- {} \;
|
||||
|
||||
else
|
||||
echo 'shellcheck is not installed. See https://github.com/facebook/react-native/wiki/Development-Dependencies#shellcheck for instructions.'
|
||||
echo 'shellcheck is not installed. See https://github.com/react/react-native/wiki/Development-Dependencies#shellcheck for instructions.'
|
||||
exit 1
|
||||
fi
|
||||
@@ -23,8 +23,8 @@ function _extractChangelog(version) {
|
||||
// for RC.0 and for the release of a new stable minor, the changelog is too long
|
||||
// to be added in a release. The release body is usually something shorter.
|
||||
// See for example the release for 0.76.0 or 0.77.0:
|
||||
// 0.76: https://github.com/facebook/react-native/releases/tag/v0.76.0
|
||||
// 0.77: https://github.com/facebook/react-native/releases/tag/v0.77.0
|
||||
// 0.76: https://github.com/react/react-native/releases/tag/v0.76.0
|
||||
// 0.77: https://github.com/react/react-native/releases/tag/v0.77.0
|
||||
return '';
|
||||
}
|
||||
const changelog = String(fs.readFileSync('CHANGELOG.md', 'utf8')).split('\n');
|
||||
@@ -73,11 +73,11 @@ To help you upgrade to this version, you can use the [Upgrade Helper](https://re
|
||||
|
||||
---
|
||||
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/facebook/react-native/blob/main/CHANGELOG.md).`;
|
||||
View the whole changelog in the [CHANGELOG.md file](https://github.com/react/react-native/blob/main/CHANGELOG.md).`;
|
||||
}
|
||||
|
||||
async function _verifyTagExists(version) {
|
||||
const url = `https://github.com/facebook/react-native/releases/tag/v${version}`;
|
||||
const url = `https://github.com/react/react-native/releases/tag/v${version}`;
|
||||
|
||||
const response = await fetch(url);
|
||||
if (response.status === 404) {
|
||||
@@ -86,7 +86,7 @@ async function _verifyTagExists(version) {
|
||||
}
|
||||
|
||||
async function _createDraftReleaseOnGitHub(version, body, latest, token) {
|
||||
const url = 'https://api.github.com/repos/facebook/react-native/releases';
|
||||
const url = 'https://api.github.com/repos/react/react-native/releases';
|
||||
const method = 'POST';
|
||||
const headers = _headers(token);
|
||||
const fetchBody = JSON.stringify({
|
||||
|
||||
@@ -59,7 +59,7 @@ function _pushCommit(version) {
|
||||
|
||||
async function _createPR(version, token) {
|
||||
log('Creating changelog pr');
|
||||
const url = 'https://api.github.com/repos/facebook/react-native/pulls';
|
||||
const url = 'https://api.github.com/repos/react/react-native/pulls';
|
||||
const body = `
|
||||
## Summary
|
||||
Add Changelog for ${version}
|
||||
|
||||
+1078
-1078
File diff suppressed because it is too large.
Load diff
+1408
-1408
File diff suppressed because it is too large.
Load diff
+3235
-3235
File diff suppressed because it is too large.
Load diff
+1024
-1024
File diff suppressed because it is too large.
Load diff
@@ -10,7 +10,7 @@
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://github.com/facebook/react-native/blob/HEAD/LICENSE">
|
||||
<a href="https://github.com/react/react-native/blob/HEAD/LICENSE">
|
||||
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="React Native is released under the MIT license." />
|
||||
</a>
|
||||
<a href="https://www.npmjs.org/package/react-native">
|
||||
@@ -38,7 +38,7 @@
|
||||
<span> · </span>
|
||||
<a href="https://reactnative.dev/help">Community</a>
|
||||
<span> · </span>
|
||||
<a href="https://github.com/facebook/react-native/blob/HEAD/.github/SUPPORT.md">Support</a>
|
||||
<a href="https://github.com/react/react-native/blob/HEAD/.github/SUPPORT.md">Support</a>
|
||||
</h3>
|
||||
|
||||
React Native brings [**React**'s][r] declarative UI framework to iOS and Android. With React Native, you use native UI controls and have full access to the native platform.
|
||||
@@ -52,7 +52,7 @@ React Native is developed and supported by many companies and individual core co
|
||||
|
||||
[r]: https://react.dev/
|
||||
[p]: https://reactnative.dev/docs/out-of-tree-platforms
|
||||
[e]: https://github.com/facebook/react-native/blob/HEAD/ECOSYSTEM.md
|
||||
[e]: https://github.com/react/react-native/blob/HEAD/ECOSYSTEM.md
|
||||
|
||||
## Contents
|
||||
|
||||
@@ -123,13 +123,13 @@ Read our [**Contributing Guide**][contribute] to learn about our development pro
|
||||
|
||||
You can learn more about our vision for React Native in the [**Roadmap**][roadmap].
|
||||
|
||||
[roadmap]: https://github.com/facebook/react-native/wiki/Roadmap
|
||||
[roadmap]: https://github.com/react/react-native/wiki/Roadmap
|
||||
|
||||
### Good First Issues
|
||||
|
||||
We have a list of [good first issues][gfi] 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.
|
||||
|
||||
[gfi]: https://github.com/facebook/react-native/labels/good%20first%20issue
|
||||
[gfi]: https://github.com/react/react-native/labels/good%20first%20issue
|
||||
|
||||
### Discussions
|
||||
|
||||
@@ -141,4 +141,4 @@ Larger discussions and proposals are discussed in [**@react-native-community/dis
|
||||
|
||||
React Native is MIT licensed, as found in the [LICENSE][l] file.
|
||||
|
||||
[l]: https://github.com/facebook/react-native/blob/main/LICENSE
|
||||
[l]: https://github.com/react/react-native/blob/main/LICENSE
|
||||
@@ -79,7 +79,7 @@ module.exports = {
|
||||
let {ast} = transformer.transform({
|
||||
filename: file,
|
||||
options: {
|
||||
ast: true, // needed for open source (?) https://github.com/facebook/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044
|
||||
ast: true, // needed for open source (?) https://github.com/react/react-native/commit/f8d6b97140cffe8d18b2558f94570c8d1b410d5c#r28647044
|
||||
dev: true,
|
||||
enableBabelRuntime: false,
|
||||
experimentalImportSupport: false,
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/assets"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/assets#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/assets#readme",
|
||||
"keywords": [
|
||||
"assets",
|
||||
"registry",
|
||||
"react-native",
|
||||
"support"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"engines": {
|
||||
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
|
||||
},
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/babel-plugin-codegen"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/babel-plugin-codegen#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/babel-plugin-codegen#readme",
|
||||
"keywords": [
|
||||
"babel",
|
||||
"plugin",
|
||||
@@ -17,7 +17,7 @@
|
||||
"native-modules",
|
||||
"view-manager"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"engines": {
|
||||
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
|
||||
},
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
"react-native",
|
||||
"tools"
|
||||
],
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/community-cli-plugin#readme",
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/community-cli-plugin#readme",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/community-cli-plugin"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@@ -141,7 +141,7 @@ export default async function getLatestRelease(
|
||||
}
|
||||
|
||||
function buildChangelogUrl(version: string) {
|
||||
return `https://github.com/facebook/react-native/releases/tag/v${version}`;
|
||||
return `https://github.com/react/react-native/releases/tag/v${version}`;
|
||||
}
|
||||
|
||||
function buildDiffUrl(oldVersion: string, newVersion: string) {
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
"cli-utils",
|
||||
"react-native"
|
||||
],
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/core-cli-utils#readme",
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/core-cli-utils#readme",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/core-cli-utils"
|
||||
},
|
||||
"main": "./src/index.flow.js",
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
"react-native",
|
||||
"tools"
|
||||
],
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/debugger-frontend#readme",
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/debugger-frontend#readme",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/debugger-frontend"
|
||||
},
|
||||
"license": "BSD-3-Clause",
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
"digest": "869b2bab193f006e6b4771b1694123ad151fc8f06173271a95f091eb4d6c9ae5",
|
||||
"providers": [
|
||||
{
|
||||
"url": "https://github.com/facebook/react-native/releases/download/v0.86.0/React.Native.DevTools-linux-aarch64.tar.gz"
|
||||
"url": "https://github.com/react/react-native/releases/download/v0.86.0/React.Native.DevTools-linux-aarch64.tar.gz"
|
||||
},
|
||||
{
|
||||
"type": "http",
|
||||
@@ -28,7 +28,7 @@
|
||||
"digest": "85af333cfbc3113b5f45646d8c0fbba5ae396d4f40c3617882d7936852cdb183",
|
||||
"providers": [
|
||||
{
|
||||
"url": "https://github.com/facebook/react-native/releases/download/v0.86.0/React.Native.DevTools-linux-x86_64.tar.gz"
|
||||
"url": "https://github.com/react/react-native/releases/download/v0.86.0/React.Native.DevTools-linux-x86_64.tar.gz"
|
||||
},
|
||||
{
|
||||
"type": "http",
|
||||
@@ -44,7 +44,7 @@
|
||||
"digest": "8be411fc07384011739f2fa6c6ab9f97d0e6be787a8118adb7e8543fc01ae5ab",
|
||||
"providers": [
|
||||
{
|
||||
"url": "https://github.com/facebook/react-native/releases/download/v0.86.0/React.Native.DevTools-macos-aarch64.tar.gz"
|
||||
"url": "https://github.com/react/react-native/releases/download/v0.86.0/React.Native.DevTools-macos-aarch64.tar.gz"
|
||||
},
|
||||
{
|
||||
"type": "http",
|
||||
@@ -60,7 +60,7 @@
|
||||
"digest": "7e52e1c961a85bf6ffae7864e3c7f6d06cca8f0c01bc4ada63efb3aded6e9089",
|
||||
"providers": [
|
||||
{
|
||||
"url": "https://github.com/facebook/react-native/releases/download/v0.86.0/React.Native.DevTools-macos-x86_64.tar.gz"
|
||||
"url": "https://github.com/react/react-native/releases/download/v0.86.0/React.Native.DevTools-macos-x86_64.tar.gz"
|
||||
},
|
||||
{
|
||||
"type": "http",
|
||||
@@ -76,7 +76,7 @@
|
||||
"digest": "2a5b7271f5ac34c19c10db6084fe71272bb52efebdd8d0e4c2b0fd9b3aeb56bb",
|
||||
"providers": [
|
||||
{
|
||||
"url": "https://github.com/facebook/react-native/releases/download/v0.86.0/React.Native.DevTools-windows-x86_64.tar.gz"
|
||||
"url": "https://github.com/react/react-native/releases/download/v0.86.0/React.Native.DevTools-windows-x86_64.tar.gz"
|
||||
},
|
||||
{
|
||||
"type": "http",
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"react-native",
|
||||
"tools"
|
||||
],
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/debugger-shell#readme",
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/debugger-shell#readme",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"main": "./src/index.js",
|
||||
"exports": {
|
||||
".": {
|
||||
@@ -33,7 +33,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/debugger-shell"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@@ -120,7 +120,7 @@ function configureAppMenu() {
|
||||
label: 'Release Notes',
|
||||
click: () =>
|
||||
shell.openExternal(
|
||||
'https://github.com/facebook/react-native/releases',
|
||||
'https://github.com/react/react-native/releases',
|
||||
),
|
||||
},
|
||||
],
|
||||
|
||||
@@ -37,7 +37,7 @@ function myDevServerImpl(args) {
|
||||
|
||||
## Included middleware
|
||||
|
||||
`@react-native/dev-middleware` is designed for integrators such as [`@expo/dev-server`](https://www.npmjs.com/package/@expo/dev-server) and [`@react-native/community-cli-plugin`](https://github.com/facebook/react-native/tree/main/packages/community-cli-plugin). It provides a common default implementation for core React Native dev server responsibilities.
|
||||
`@react-native/dev-middleware` is designed for integrators such as [`@expo/dev-server`](https://www.npmjs.com/package/@expo/dev-server) and [`@react-native/community-cli-plugin`](https://github.com/react/react-native/tree/main/packages/community-cli-plugin). It provides a common default implementation for core React Native dev server responsibilities.
|
||||
|
||||
We intend to keep this to a narrow set of functionality, based around:
|
||||
|
||||
|
||||
@@ -6,11 +6,11 @@
|
||||
"react-native",
|
||||
"tools"
|
||||
],
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/dev-middleware#readme",
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/dev-middleware#readme",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/dev-middleware"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/eslint-config-react-native"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/eslint-config-react-native#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/eslint-config-react-native#readme",
|
||||
"keywords": [
|
||||
"eslint",
|
||||
"config",
|
||||
"react-native"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"engines": {
|
||||
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
|
||||
},
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# @react-native/eslint-plugin
|
||||
|
||||
This plugin is intended to be used in [`@react-native/eslint-config`](https://github.com/facebook/react-native/tree/HEAD/packages/eslint-config-react-native). You probably want to install that package instead.
|
||||
This plugin is intended to be used in [`@react-native/eslint-config`](https://github.com/react/react-native/tree/HEAD/packages/eslint-config-react-native). You probably want to install that package instead.
|
||||
|
||||
## Installation
|
||||
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/eslint-plugin-react-native"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/eslint-plugin-react-native#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/eslint-plugin-react-native#readme",
|
||||
"keywords": [
|
||||
"eslint",
|
||||
"rules",
|
||||
"eslint-config",
|
||||
"react-native"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"main": "index.js",
|
||||
"devDependencies": {
|
||||
"babel-plugin-syntax-hermes-parser": "0.36.0",
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/eslint-plugin-specs"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/eslint-plugin-specs#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/eslint-plugin-specs#readme",
|
||||
"keywords": [
|
||||
"eslint",
|
||||
"rules",
|
||||
@@ -17,7 +17,7 @@
|
||||
"components",
|
||||
"specs"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"prepack": "node prepack.js",
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/gradle-plugin"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/gradle-plugin#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/gradle-plugin#readme",
|
||||
"keywords": [
|
||||
"gradle",
|
||||
"plugin",
|
||||
"react-native"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"engines": {
|
||||
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
|
||||
},
|
||||
|
||||
+3
-3
@@ -130,7 +130,7 @@ internal object DependencyUtils {
|
||||
project.rootProject.allprojects { eachProject ->
|
||||
eachProject.configurations.all { configuration ->
|
||||
// Here we set a dependencySubstitution for both react-native and hermes-engine as those
|
||||
// coordinates are voided due to https://github.com/facebook/react-native/issues/35210
|
||||
// coordinates are voided due to https://github.com/react/react-native/issues/35210
|
||||
// This allows users to import libraries that are still using
|
||||
// implementation("com.facebook.react:react-native:+") and resolve the right dependency.
|
||||
configuration.resolutionStrategy.dependencySubstitution {
|
||||
@@ -165,14 +165,14 @@ internal object DependencyUtils {
|
||||
Triple(
|
||||
"com.facebook.react:react-native",
|
||||
"${coordinates.reactGroupString}:react-android:${coordinates.versionString}",
|
||||
"The react-native artifact was deprecated in favor of react-android due to https://github.com/facebook/react-native/issues/35210.",
|
||||
"The react-native artifact was deprecated in favor of react-android due to https://github.com/react/react-native/issues/35210.",
|
||||
)
|
||||
)
|
||||
dependencySubstitution.add(
|
||||
Triple(
|
||||
"com.facebook.react:hermes-engine",
|
||||
hermesVersionString,
|
||||
"The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/facebook/react-native/issues/35210.",
|
||||
"The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/react/react-native/issues/35210.",
|
||||
)
|
||||
)
|
||||
dependencySubstitution.add(
|
||||
|
||||
+8
-8
@@ -468,14 +468,14 @@ class DependencyUtilsTest {
|
||||
assertThat("com.facebook.react:react-android:0.42.0")
|
||||
.isEqualTo(dependencySubstitutions[0].second)
|
||||
assertThat(
|
||||
"The react-native artifact was deprecated in favor of react-android due to https://github.com/facebook/react-native/issues/35210."
|
||||
"The react-native artifact was deprecated in favor of react-android due to https://github.com/react/react-native/issues/35210."
|
||||
)
|
||||
.isEqualTo(dependencySubstitutions[0].third)
|
||||
assertThat("com.facebook.react:hermes-engine").isEqualTo(dependencySubstitutions[1].first)
|
||||
assertThat("com.facebook.hermes:hermes-android:0.43.0")
|
||||
.isEqualTo(dependencySubstitutions[1].second)
|
||||
assertThat(
|
||||
"The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/facebook/react-native/issues/35210."
|
||||
"The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/react/react-native/issues/35210."
|
||||
)
|
||||
.isEqualTo(dependencySubstitutions[1].third)
|
||||
}
|
||||
@@ -492,14 +492,14 @@ class DependencyUtilsTest {
|
||||
assertThat("com.facebook.react:react-android:0.42.0")
|
||||
.isEqualTo(dependencySubstitutions[0].second)
|
||||
assertThat(
|
||||
"The react-native artifact was deprecated in favor of react-android due to https://github.com/facebook/react-native/issues/35210."
|
||||
"The react-native artifact was deprecated in favor of react-android due to https://github.com/react/react-native/issues/35210."
|
||||
)
|
||||
.isEqualTo(dependencySubstitutions[0].third)
|
||||
assertThat("com.facebook.react:hermes-engine").isEqualTo(dependencySubstitutions[1].first)
|
||||
assertThat("com.facebook.hermes:hermes-android:0.43.0")
|
||||
.isEqualTo(dependencySubstitutions[1].second)
|
||||
assertThat(
|
||||
"The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/facebook/react-native/issues/35210."
|
||||
"The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/react/react-native/issues/35210."
|
||||
)
|
||||
.isEqualTo(dependencySubstitutions[1].third)
|
||||
}
|
||||
@@ -520,14 +520,14 @@ class DependencyUtilsTest {
|
||||
assertThat("com.facebook.react:react-native").isEqualTo(dependencySubstitutions[0].first)
|
||||
assertThat("io.github.test:react-android:0.42.0").isEqualTo(dependencySubstitutions[0].second)
|
||||
assertThat(
|
||||
"The react-native artifact was deprecated in favor of react-android due to https://github.com/facebook/react-native/issues/35210."
|
||||
"The react-native artifact was deprecated in favor of react-android due to https://github.com/react/react-native/issues/35210."
|
||||
)
|
||||
.isEqualTo(dependencySubstitutions[0].third)
|
||||
assertThat("com.facebook.react:hermes-engine").isEqualTo(dependencySubstitutions[1].first)
|
||||
assertThat("io.github.test.hermes:hermes-android:0.43.0")
|
||||
.isEqualTo(dependencySubstitutions[1].second)
|
||||
assertThat(
|
||||
"The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/facebook/react-native/issues/35210."
|
||||
"The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/react/react-native/issues/35210."
|
||||
)
|
||||
.isEqualTo(dependencySubstitutions[1].third)
|
||||
assertThat("com.facebook.react:hermes-android").isEqualTo(dependencySubstitutions[2].first)
|
||||
@@ -563,14 +563,14 @@ class DependencyUtilsTest {
|
||||
assertThat("com.facebook.react:react-native").isEqualTo(dependencySubstitutions[0].first)
|
||||
assertThat("io.github.test:react-android:0.42.0").isEqualTo(dependencySubstitutions[0].second)
|
||||
assertThat(
|
||||
"The react-native artifact was deprecated in favor of react-android due to https://github.com/facebook/react-native/issues/35210."
|
||||
"The react-native artifact was deprecated in favor of react-android due to https://github.com/react/react-native/issues/35210."
|
||||
)
|
||||
.isEqualTo(dependencySubstitutions[0].third)
|
||||
assertThat("com.facebook.react:hermes-engine").isEqualTo(dependencySubstitutions[1].first)
|
||||
assertThat("io.github.test.hermes:hermes-android:0.42.0")
|
||||
.isEqualTo(dependencySubstitutions[1].second)
|
||||
assertThat(
|
||||
"The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/facebook/react-native/issues/35210."
|
||||
"The hermes-engine artifact was deprecated in favor of hermes-android due to https://github.com/react/react-native/issues/35210."
|
||||
)
|
||||
.isEqualTo(dependencySubstitutions[1].third)
|
||||
assertThat("com.facebook.react:hermes-android").isEqualTo(dependencySubstitutions[2].first)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/jest-preset"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@@ -5,16 +5,16 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/metro-config"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/metro-config#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/metro-config#readme",
|
||||
"keywords": [
|
||||
"metro",
|
||||
"config",
|
||||
"react-native"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"engines": {
|
||||
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
|
||||
},
|
||||
|
||||
@@ -5,11 +5,11 @@
|
||||
"keywords": [
|
||||
"react-native"
|
||||
],
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/new-app-screen#readme",
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/new-app-screen#readme",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/new-app-screen"
|
||||
},
|
||||
"license": "MIT",
|
||||
|
||||
@@ -5,17 +5,17 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/normalize-color"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/normalize-color#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/normalize-color#readme",
|
||||
"keywords": [
|
||||
"color",
|
||||
"normalization",
|
||||
"normalize-colors",
|
||||
"react-native"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"files": [
|
||||
"index.js",
|
||||
"README.md",
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/polyfills"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/polyfills#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/polyfills#readme",
|
||||
"keywords": [
|
||||
"polyfill",
|
||||
"polyfills",
|
||||
@@ -16,7 +16,7 @@
|
||||
"js-polyfills",
|
||||
"react-native"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"engines": {
|
||||
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "Babel preset for React Native applications",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/facebook/react-native.git"
|
||||
"url": "git+ssh://git@github.com/react/react-native.git"
|
||||
},
|
||||
"keywords": [
|
||||
"babel",
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"description": "Babel transformer for React Native applications.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+ssh://git@github.com/facebook/react-native.git",
|
||||
"url": "git+ssh://git@github.com/react/react-native.git",
|
||||
"directory": "packages/react-native-babel-transformer"
|
||||
},
|
||||
"keywords": [
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
|
||||
// This file uses Flow comment syntax so that it may be used from source as a
|
||||
// transformer without itself requiring transformation, such as in
|
||||
// facebook/react-native's own tests.
|
||||
// react/react-native's own tests.
|
||||
|
||||
'use strict';
|
||||
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/react-native-codegen"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/react-native-codegen#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/react-native-codegen#readme",
|
||||
"keywords": [
|
||||
"code",
|
||||
"generation",
|
||||
@@ -16,7 +16,7 @@
|
||||
"tools",
|
||||
"react-native"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"engines": {
|
||||
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
|
||||
},
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/facebook/react-native.git",
|
||||
"url": "git+https://github.com/react/react-native.git",
|
||||
"directory": "packages/react-native-compatibility-check"
|
||||
},
|
||||
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/react-native-compatibility-check#readme",
|
||||
"homepage": "https://github.com/react/react-native/tree/HEAD/packages/react-native-compatibility-check#readme",
|
||||
"keywords": [
|
||||
"boundary",
|
||||
"crashes",
|
||||
@@ -17,7 +17,7 @@
|
||||
"tools",
|
||||
"react-native"
|
||||
],
|
||||
"bugs": "https://github.com/facebook/react-native/issues",
|
||||
"bugs": "https://github.com/react/react-native/issues",
|
||||
"engines": {
|
||||
"node": "^20.19.4 || ^22.13.0 || ^24.3.0 || >= 25.0.0"
|
||||
},
|
||||
|
||||
+1
-1
@@ -403,7 +403,7 @@ describe('components', () => {
|
||||
it('does not error (but it should) on arrays of two different objects', () => {
|
||||
// This doesn't fail because we don't store object alias info in the schema
|
||||
// These are just arrays of mixed. Someday someone should fix this. NativeModules support this.
|
||||
// More info in https://github.com/facebook/react-native/pull/48476
|
||||
// More info in https://github.com/react/react-native/pull/48476
|
||||
expect(
|
||||
compareTypes(
|
||||
nativeComponentAllTypesCommandLookup('methodCustomObjArray'),
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -31,7 +31,7 @@ import {cloneElement, useMemo} from 'react';
|
||||
type AnimatedScrollViewInstance = React.ElementRef<typeof ScrollView>;
|
||||
|
||||
/**
|
||||
* @see https://github.com/facebook/react-native/commit/b8c8562
|
||||
* @see https://github.com/react/react-native/commit/b8c8562
|
||||
*/
|
||||
const AnimatedScrollView: AnimatedComponentType<
|
||||
ScrollViewProps,
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
+2
-2
@@ -128,7 +128,7 @@ export type ButtonProps = Readonly<{
|
||||
accessibilityLabel?: ?string,
|
||||
/**
|
||||
* Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabel
|
||||
* https://github.com/facebook/react-native/issues/34424
|
||||
* https://github.com/react/react-native/issues/34424
|
||||
*/
|
||||
'aria-label'?: ?string,
|
||||
/**
|
||||
@@ -182,7 +182,7 @@ export type ButtonProps = Readonly<{
|
||||
[button:examples].
|
||||
|
||||
[button:source]:
|
||||
https://github.com/facebook/react-native/blob/HEAD/Libraries/Components/Button.js
|
||||
https://github.com/react/react-native/blob/HEAD/Libraries/Components/Button.js
|
||||
|
||||
```jsx
|
||||
<Button
|
||||
|
||||
+1
-1
@@ -576,7 +576,7 @@ export type AndroidTextInputNativeProps = Readonly<{
|
||||
* - `borderBottomRightRadius`
|
||||
* - `borderBottomLeftRadius`
|
||||
*
|
||||
* see [Issue#7070](https://github.com/facebook/react-native/issues/7070)
|
||||
* see [Issue#7070](https://github.com/react/react-native/issues/7070)
|
||||
* for more detail.
|
||||
*
|
||||
* [Styles](docs/style.html)
|
||||
|
||||
@@ -1032,7 +1032,7 @@ type TextInputBaseProps = Readonly<{
|
||||
* - `borderBottomRightRadius`
|
||||
* - `borderBottomLeftRadius`
|
||||
*
|
||||
* see [Issue#7070](https://github.com/facebook/react-native/issues/7070)
|
||||
* see [Issue#7070](https://github.com/react/react-native/issues/7070)
|
||||
* for more detail.
|
||||
*
|
||||
* [Styles](docs/style.html)
|
||||
|
||||
@@ -32,7 +32,7 @@ export const Touchable: {
|
||||
};
|
||||
|
||||
/**
|
||||
* @see https://github.com/facebook/react-native/blob/0.34-stable\Libraries\Components\Touchable\Touchable.js
|
||||
* @see https://github.com/react/react-native/blob/0.34-stable\Libraries\Components\Touchable\Touchable.js
|
||||
*/
|
||||
interface TouchableMixin {
|
||||
/**
|
||||
|
||||
@@ -34,7 +34,7 @@ export interface AccessibilityProps
|
||||
|
||||
/**
|
||||
* Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabel
|
||||
* https://github.com/facebook/react-native/issues/34424
|
||||
* https://github.com/react/react-native/issues/34424
|
||||
*/
|
||||
'aria-label'?: string | undefined;
|
||||
|
||||
|
||||
@@ -370,7 +370,7 @@ export type AccessibilityProps = Readonly<{
|
||||
|
||||
/**
|
||||
* Alias for accessibilityLabel https://reactnative.dev/docs/view#accessibilitylabel
|
||||
* https://github.com/facebook/react-native/issues/34424
|
||||
* https://github.com/react/react-native/issues/34424
|
||||
*/
|
||||
'aria-label'?: ?Stringish,
|
||||
|
||||
|
||||
+1
-1
@@ -159,7 +159,7 @@ function _callReactNativeMicrotasksPass() {
|
||||
reactNativeMicrotasks = [];
|
||||
|
||||
// Use for loop rather than forEach as per @vjeux's advice
|
||||
// https://github.com/facebook/react-native/commit/c8fd9f7588ad02d2293cac7224715f4af7b0f352#commitcomment-14570051
|
||||
// https://github.com/react/react-native/commit/c8fd9f7588ad02d2293cac7224715f4af7b0f352#commitcomment-14570051
|
||||
for (let i = 0; i < passReactNativeMicrotasks.length; ++i) {
|
||||
_callTimer(passReactNativeMicrotasks[i], 0);
|
||||
}
|
||||
|
||||
+1
-1
@@ -17,6 +17,6 @@ if (navigator === undefined) {
|
||||
// $FlowExpectedError[cannot-write] The global isn't writable anywhere but here, where we define it.
|
||||
global.navigator = {product: 'ReactNative'};
|
||||
} else {
|
||||
// see https://github.com/facebook/react-native/issues/10881
|
||||
// see https://github.com/react/react-native/issues/10881
|
||||
polyfillObjectProperty(navigator, 'product', () => 'ReactNative');
|
||||
}
|
||||
@@ -20,7 +20,7 @@ export interface NativeEventSubscription {
|
||||
* Receive events from native-code
|
||||
* Deprecated - subclass NativeEventEmitter to create granular event modules instead of
|
||||
* adding all event listeners directly to RCTNativeAppEventEmitter.
|
||||
* @see https://github.com/facebook/react-native/blob/0.34-stable\Libraries\EventEmitter\RCTNativeAppEventEmitter.js
|
||||
* @see https://github.com/react/react-native/blob/0.34-stable\Libraries\EventEmitter\RCTNativeAppEventEmitter.js
|
||||
* @see https://reactnative.dev/docs/native-modules-ios#sending-events-to-javascript
|
||||
*/
|
||||
type RCTNativeAppEventEmitter = DeviceEventEmitterStatic;
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* @see https://github.com/facebook/react-native/blob/master/Libraries/Image/ImageSource.js
|
||||
* @see https://github.com/react/react-native/blob/master/Libraries/Image/ImageSource.js
|
||||
*/
|
||||
export interface ImageURISource {
|
||||
/**
|
||||
|
||||
@@ -517,7 +517,7 @@ static RCTImageLoaderCancellationBlock RCTLoadImageURLFromLoader(
|
||||
// Add missing png extension
|
||||
if (request.URL.fileURL && request.URL.pathExtension.length == 0) {
|
||||
// Check if there exists a file with that url on disk already
|
||||
// This should fix issue https://github.com/facebook/react-native/issues/46870
|
||||
// This should fix issue https://github.com/react/react-native/issues/46870
|
||||
if ([[NSFileManager defaultManager] fileExistsAtPath:request.URL.path]) {
|
||||
mutableRequest.URL = request.URL;
|
||||
} else {
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -117,7 +117,7 @@ const currentCentroidY = TouchHistoryMath.currentCentroidY;
|
||||
* ### Working Example
|
||||
*
|
||||
* To see it in action, try the
|
||||
* [PanResponder example in RNTester](https://github.com/facebook/react-native/blob/HEAD/packages/rn-tester/js/examples/PanResponder/PanResponderExample.js)
|
||||
* [PanResponder example in RNTester](https://github.com/react/react-native/blob/HEAD/packages/rn-tester/js/examples/PanResponder/PanResponderExample.js)
|
||||
*/
|
||||
|
||||
export type PanResponderGestureState = {
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
This page describes how React and React Native versions interact each other.
|
||||
The version alignment between the two frameworks relies on two synchronization points:
|
||||
|
||||
1. The versions in the `package.json` of the new app template. For example [for React Native 0.68.1](https://github.com/facebook/react-native/blob/0.68-stable/template/package.json#L12-L15) the versions are aligned as follows:
|
||||
1. The versions in the `package.json` of the new app template. For example [for React Native 0.68.1](https://github.com/react/react-native/blob/0.68-stable/template/package.json#L12-L15) the versions are aligned as follows:
|
||||
|
||||
```
|
||||
"dependencies": {
|
||||
@@ -12,7 +12,7 @@ The version alignment between the two frameworks relies on two synchronization p
|
||||
},
|
||||
```
|
||||
|
||||
1. The React renderers **shipped** with React Native inside this folder, the [./Libraries/Renderer](https://github.com/facebook/react-native/tree/main/Libraries/Renderer) folder, of React Native.
|
||||
1. The React renderers **shipped** with React Native inside this folder, the [./Libraries/Renderer](https://github.com/react/react-native/tree/main/Libraries/Renderer) folder, of React Native.
|
||||
|
||||
This practically means that you **can't bump** the version of React in your `package.json` to a later version,
|
||||
as you will still be using the older renderer from the folder mentioned above. Bumping the react version in your `package.json` will lead to unexpected behaviors.
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -23,7 +23,7 @@ const defineLazyObjectProperty = require('./defineLazyObjectProperty').default;
|
||||
*
|
||||
* global.XMLHttpRequest = global.originalXMLHttpRequest;
|
||||
*
|
||||
* @see https://github.com/facebook/react-native/issues/934
|
||||
* @see https://github.com/react/react-native/issues/934
|
||||
*/
|
||||
export function polyfillObjectProperty<T>(
|
||||
object: {...},
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -102,7 +102,7 @@ let jsi = RNTarget(
|
||||
path: "ReactCommon/jsi",
|
||||
// JSI is a part of hermes-engine. Including them also in react-native will violate the One Definition Rule.
|
||||
// Precompiled binaries are only supported with hermes - so we can safely exclude the jsi.cpp file.
|
||||
// https://github.com/facebook/react-native/issues/53257
|
||||
// https://github.com/react/react-native/issues/53257
|
||||
excludedPaths: ["jsi/test", "jsi/jsi.cpp", "CMakeLists.txt", "jsi/CMakeLists.txt"],
|
||||
dependencies: [.reactNativeDependencies]
|
||||
)
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
+1
-1
@@ -247,7 +247,7 @@ RCTSendScrollEventForNativeAnimations_DEPRECATED(UIScrollView *scrollView, NSInt
|
||||
if (@available(iOS 14.0, *)) {
|
||||
// On iOS when Prefer Cross-Fade Transitions is enabled, the keyboard position
|
||||
// & height is reported differently (0 instead of Y position value matching height of frame)
|
||||
// Fixes similar issue we saw with https://github.com/facebook/react-native/pull/34503
|
||||
// Fixes similar issue we saw with https://github.com/react/react-native/pull/34503
|
||||
if (UIAccessibilityPrefersCrossFadeTransitions() && keyboardEndFrame.size.height == 0) {
|
||||
newContentOffset.y = 0;
|
||||
newEdgeInsets.bottom = 0;
|
||||
|
||||
+1
-1
@@ -798,7 +798,7 @@ static NSSet<NSNumber *> *returnKeyTypesSet;
|
||||
// Ensure that newly typed text will inherit any custom attributes. We follow the logic of RN Android, where attributes
|
||||
// to the left of the cursor are copied into new text, unless we are at the start of the field, in which case we will
|
||||
// copy the attributes from text to the right. This allows consistency between backed input and new AttributedText
|
||||
// https://github.com/facebook/react-native/blob/3102a58df38d96f3dacef0530e4dbb399037fcd2/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/SetSpanOperation.kt#L30
|
||||
// https://github.com/react/react-native/blob/3102a58df38d96f3dacef0530e4dbb399037fcd2/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/text/internal/span/SetSpanOperation.kt#L30
|
||||
- (void)_updateTypingAttributes
|
||||
{
|
||||
if (_backedTextInputView.attributedText.length > 0 && _backedTextInputView.selectedTextRange != nil) {
|
||||
|
||||
@@ -11,7 +11,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -8,7 +8,7 @@ require "json"
|
||||
package = JSON.parse(File.read(File.join(__dir__, "..", "..", "package.json")))
|
||||
version = package['version']
|
||||
|
||||
source = { :git => 'https://github.com/facebook/react-native.git' }
|
||||
source = { :git => 'https://github.com/react/react-native.git' }
|
||||
if version == '1000.0.0'
|
||||
# This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
|
||||
source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
|
||||
|
||||
@@ -342,7 +342,7 @@ static inline UIViewAnimationOptions animationOptionsWithCurve(UIViewAnimationCu
|
||||
if (@available(iOS 14.0, *)) {
|
||||
// On iOS when Prefer Cross-Fade Transitions is enabled, the keyboard position
|
||||
// & height is reported differently (0 instead of Y position value matching height of frame)
|
||||
// Fixes similar issue we saw with https://github.com/facebook/react-native/pull/34503
|
||||
// Fixes similar issue we saw with https://github.com/react/react-native/pull/34503
|
||||
if (UIAccessibilityPrefersCrossFadeTransitions() && endFrame.size.height == 0) {
|
||||
newContentOffset.y = 0;
|
||||
newEdgeInsets.bottom = 0;
|
||||
|
||||
@@ -765,7 +765,7 @@ apply(from = "./publish.gradle")
|
||||
// We need to override the artifact ID as this project is called `ReactAndroid` but
|
||||
// the maven coordinates are on `react-android`.
|
||||
// Please note that the original coordinates, `react-native`, have been voided
|
||||
// as they caused https://github.com/facebook/react-native/issues/35210
|
||||
// as they caused https://github.com/react/react-native/issues/35210
|
||||
publishing {
|
||||
publications { getByName("release", MavenPublication::class) { artifactId = "react-android" } }
|
||||
}
|
||||
@@ -37,7 +37,7 @@ publishing {
|
||||
pom {
|
||||
name = "react-native"
|
||||
description = "A framework for building native apps with React"
|
||||
url = "https://github.com/facebook/react-native"
|
||||
url = "https://github.com/react/react-native"
|
||||
|
||||
developers {
|
||||
developer {
|
||||
@@ -49,15 +49,15 @@ publishing {
|
||||
licenses {
|
||||
license {
|
||||
name = "MIT License"
|
||||
url = "https://github.com/facebook/react-native/blob/HEAD/LICENSE"
|
||||
url = "https://github.com/react/react-native/blob/HEAD/LICENSE"
|
||||
distribution = "repo"
|
||||
}
|
||||
}
|
||||
|
||||
scm {
|
||||
url = "https://github.com/facebook/react-native.git"
|
||||
connection = "scm:git:https://github.com/facebook/react-native.git"
|
||||
developerConnection = "scm:git:git@github.com:facebook/react-native.git"
|
||||
url = "https://github.com/react/react-native.git"
|
||||
connection = "scm:git:https://github.com/react/react-native.git"
|
||||
developerConnection = "scm:git:git@github.com:react/react-native.git"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -85,7 +85,7 @@ internal class CxxInspectorPackagerConnection(
|
||||
* A simple WebSocket wrapper that prevents having more than 16MiB of messages queued
|
||||
* simultaneously. This is done to stop OkHttp from closing the WebSocket connection.
|
||||
*
|
||||
* https://github.com/facebook/react-native/issues/39651.
|
||||
* https://github.com/react/react-native/issues/39651.
|
||||
* https://github.com/square/okhttp/blob/4e7dbec1ea6c9cf8d80422ac9d44b9b185c749a3/okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt#L684.
|
||||
*/
|
||||
private class InspectorPackagerWebSocketImpl(
|
||||
|
||||
+2
-2
@@ -1070,8 +1070,8 @@ internal constructor(
|
||||
// If the view that went offscreen is still being touched, we can't delete it yet.
|
||||
// We have to delay the deletion till the touch is completed.
|
||||
// This is causing bugs like those otherwise:
|
||||
// - https://github.com/facebook/react-native/issues/44610
|
||||
// - https://github.com/facebook/react-native/issues/45126
|
||||
// - https://github.com/react/react-native/issues/44610
|
||||
// - https://github.com/react/react-native/issues/45126
|
||||
viewsToDeleteAfterTouchFinishes.add(reactTag)
|
||||
} else {
|
||||
// To delete we simply remove the tag from the registry.
|
||||
|
||||
+2
-2
@@ -326,8 +326,8 @@ public open class JavaTimerManager(
|
||||
|
||||
// If the JS thread is busy for multiple frames we cancel any other pending runnable.
|
||||
// We also capture the idleCallbackRunnable to tentatively fix:
|
||||
// https://github.com/facebook/react-native/issues/44842
|
||||
// https://github.com/facebook/react-native/issues/54983
|
||||
// https://github.com/react/react-native/issues/44842
|
||||
// https://github.com/react/react-native/issues/54983
|
||||
currentIdleCallbackRunnable?.cancel()
|
||||
val idleCallbackRunnable = IdleCallbackRunnable(frameTimeNanos)
|
||||
currentIdleCallbackRunnable = idleCallbackRunnable
|
||||
|
||||
+1
-1
@@ -223,7 +223,7 @@ public open class IntentModule(reactContext: ReactApplicationContext) :
|
||||
}
|
||||
ReadableType.Number -> {
|
||||
// We cannot know from JS if is an Integer or Double
|
||||
// See: https://github.com/facebook/react-native/issues/4141
|
||||
// See: https://github.com/react/react-native/issues/4141
|
||||
// We might need to find a workaround if this is really an issue
|
||||
val number = map.getDouble(EXTRA_MAP_KEY_FOR_VALUE)
|
||||
intent.putExtra(name, number)
|
||||
|
||||
+2
-2
@@ -166,7 +166,7 @@ public class NetworkingModule(
|
||||
|
||||
@Deprecated(
|
||||
"""To be removed in a future release. See
|
||||
https://github.com/facebook/react-native/pull/37798#pullrequestreview-1518338914"""
|
||||
https://github.com/react/react-native/pull/37798#pullrequestreview-1518338914"""
|
||||
)
|
||||
public interface CustomClientBuilder : com.facebook.react.modules.network.CustomClientBuilder
|
||||
|
||||
@@ -480,7 +480,7 @@ public class NetworkingModule(
|
||||
} else {
|
||||
// Use getBytes() to convert the body into a byte[], preventing okhttp from
|
||||
// appending the character set to the Content-Type header when otherwise unspecified
|
||||
// https://github.com/facebook/react-native/issues/8237
|
||||
// https://github.com/react/react-native/issues/8237
|
||||
val charset =
|
||||
if (contentMediaType == null) {
|
||||
StandardCharsets.UTF_8
|
||||
|
||||
+1
-1
@@ -569,7 +569,7 @@ internal class ReactInstance(
|
||||
// We need to null check here because some Java implementation of the
|
||||
// `ViewManagerOnDemandReactPackage` interface could still return null even
|
||||
// if the method is marked as returning a non-nullable collection in Kotlin.
|
||||
// See https://github.com/facebook/react-native/issues/52014
|
||||
// See https://github.com/react/react-native/issues/52014
|
||||
@Suppress("SENSELESS_COMPARISON")
|
||||
if (names == null) {
|
||||
RNLog.w(
|
||||
|
||||
+1
-1
@@ -626,7 +626,7 @@ public abstract class BaseViewManager<T extends View, C extends LayoutShadowNode
|
||||
// The native Android implementation removed the screen density from the
|
||||
// calculation, so squaring and a normalization value of
|
||||
// sqrt(5) produces an exact replica with iOS.
|
||||
// For more information, see https://github.com/facebook/react-native/pull/18302
|
||||
// For more information, see https://github.com/react/react-native/pull/18302
|
||||
float normalizedCameraDistance =
|
||||
sanitizeFloatPropertyValue(
|
||||
scale * scale * cameraDistance * CAMERA_DISTANCE_NORMALIZATION_MULTIPLIER);
|
||||
|
||||
+1
-1
@@ -438,7 +438,7 @@ constructor(private val fpsListener: FpsListener? = null) :
|
||||
// be on the wrong side. Thus we are moving it to the other side, when the list
|
||||
// is inverted.
|
||||
// See also:
|
||||
// - https://github.com/facebook/react-native/issues/35350
|
||||
// - https://github.com/react/react-native/issues/35350
|
||||
// - https://issuetracker.google.com/issues/287304310
|
||||
if (applyFix) {
|
||||
view.verticalScrollbarPosition = View.SCROLLBAR_POSITION_LEFT
|
||||
|
||||
+1
-1
@@ -430,7 +430,7 @@ constructor(private val fpsListener: FpsListener? = null) :
|
||||
// be on the wrong side. Thus we are moving it to the other side, when the list
|
||||
// is inverted.
|
||||
// See also:
|
||||
// - https://github.com/facebook/react-native/issues/35350
|
||||
// - https://github.com/react/react-native/issues/35350
|
||||
// - https://issuetracker.google.com/issues/287304310
|
||||
if (applyFix) {
|
||||
view.verticalScrollbarPosition = View.SCROLLBAR_POSITION_LEFT
|
||||
|
||||
+1
-1
@@ -227,7 +227,7 @@ public class ReactTextView extends AppCompatTextView implements ReactCompoundVie
|
||||
try (SystraceSection s = new SystraceSection("ReactTextView.setText(ReactTextUpdate)")) {
|
||||
// Android's TextView crashes when it tries to relayout if LayoutParams are
|
||||
// null; explicitly set the LayoutParams to prevent this crash. See:
|
||||
// https://github.com/facebook/react-native/pull/7011
|
||||
// https://github.com/react/react-native/pull/7011
|
||||
if (getLayoutParams() == null) {
|
||||
setLayoutParams(EMPTY_LAYOUT_PARAMS);
|
||||
}
|
||||
|
||||
+2
-2
@@ -737,7 +737,7 @@ public open class ReactEditText public constructor(context: Context) : AppCompat
|
||||
/**
|
||||
* Remove spans from the SpannableStringBuilder which can be represented by TextAppearance
|
||||
* attributes on the underlying EditText. This works around instability on Samsung devices with
|
||||
* the presence of spans https://github.com/facebook/react-native/issues/35936 (S318090)
|
||||
* the presence of spans https://github.com/react/react-native/issues/35936 (S318090)
|
||||
*/
|
||||
private fun stripStyleEquivalentSpans(sb: SpannableStringBuilder) {
|
||||
stripSpansOfKind(sb, ReactAbsoluteSizeSpan::class.java) { span: ReactAbsoluteSizeSpan ->
|
||||
@@ -930,7 +930,7 @@ public open class ReactEditText public constructor(context: Context) : AppCompat
|
||||
val selectionEnd = selectionEnd
|
||||
|
||||
// Used to ensure that text is selectable inside of removeClippedSubviews
|
||||
// See https://github.com/facebook/react-native/issues/6805 for original
|
||||
// See https://github.com/react/react-native/issues/6805 for original
|
||||
// fix that was ported to here.
|
||||
super.setTextIsSelectable(true)
|
||||
|
||||
|
||||
+2
-2
@@ -381,7 +381,7 @@ public open class ReactTextInputManager public constructor() :
|
||||
return
|
||||
}
|
||||
|
||||
// Based on https://github.com/facebook/react-native/pull/31007
|
||||
// Based on https://github.com/react/react-native/pull/31007
|
||||
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.P) {
|
||||
return
|
||||
}
|
||||
@@ -739,7 +739,7 @@ public open class ReactTextInputManager public constructor() :
|
||||
// crash happens when focusing on a email EditText, during which a prompt will be triggered
|
||||
// but
|
||||
// the system fail to locate it properly. Here is an example post discussing about this
|
||||
// issue: https://github.com/facebook/react-native/issues/27204
|
||||
// issue: https://github.com/react/react-native/issues/27204
|
||||
if (shouldHideCursorForEmailTextInput()) {
|
||||
view.isCursorVisible = false
|
||||
}
|
||||
|
||||
Loaded 100 of 196 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user