Skip to content

Commit 56a9929

Browse files
committed
Merge branch 'main' into set-log-box-max-font-size
2 parents d472468 + 707e366 commit 56a9929

455 files changed

Lines changed: 8472 additions & 6225 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ module.exports = {
5050
files: [
5151
'./packages/react-native/Libraries/**/*.{js,flow}',
5252
'./packages/react-native/src/**/*.{js,flow}',
53-
'./packages/assets/registry.js',
53+
'./packages/assets-registry/registry.js',
5454
],
5555
parser: 'hermes-eslint',
5656
rules: {

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ packages/react-native/flow/
4545
[options]
4646
enums=true
4747
experimental.pattern_matching=true
48+
experimental.allow_variance_keywords=true
4849
casting_syntax=both
4950
component_syntax=true
5051

.github/actions/diff-js-api-changes/action.yml

Lines changed: 35 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,51 @@ outputs:
77
runs:
88
using: composite
99
steps:
10-
- name: Fetch PR and main, compute merge base
11-
id: merge_base
12-
shell: bash
13-
env:
14-
PR_SHA: ${{ github.event.pull_request.head.sha }}
15-
run: |
16-
git fetch origin main
17-
git fetch origin "$PR_SHA" --depth=500
18-
echo "merge_base=$(git merge-base "$PR_SHA" origin/main)" >> $GITHUB_OUTPUT
10+
- name: Resolve API diff inputs
11+
id: api_diff
12+
uses: actions/github-script@v8
13+
with:
14+
script: |
15+
// Check if we are targeting main or a stable branch
16+
const baseRef = context.payload.pull_request.base.ref;
17+
if (baseRef !== 'main' && !baseRef.endsWith('-stable')) {
18+
core.setOutput('changed', false);
19+
return;
20+
}
21+
22+
// Check if the diff touches ReactNativeApi.d.ts
23+
const files = await github.paginate(github.rest.pulls.listFiles, {
24+
...context.repo,
25+
pull_number: context.payload.pull_request.number,
26+
});
27+
const changed = files.some(f => f.filename === 'packages/react-native/ReactNativeApi.d.ts');
28+
core.setOutput('changed', changed);
29+
if (!changed) return;
30+
31+
// Calculate merge base
32+
const {data} = await github.rest.repos.compareCommits({
33+
...context.repo,
34+
base: context.payload.pull_request.base.ref,
35+
head: context.payload.pull_request.head.sha,
36+
});
37+
core.setOutput('merge_base', data.merge_base_commit.sha);
1938
20-
- name: Extract before and after API snapshots
39+
- name: Fetch commits and extract API snapshots
40+
if: steps.api_diff.outputs.changed == 'true'
2141
shell: bash
2242
env:
2343
SCRATCH_DIR: ${{ runner.temp }}/diff-js-api-changes
24-
MERGE_BASE: ${{ steps.merge_base.outputs.merge_base }}
25-
PR_SHA: ${{ github.event.pull_request.head.sha }}
2644
run: |
2745
mkdir -p $SCRATCH_DIR
28-
git show "$MERGE_BASE":packages/react-native/ReactNativeApi.d.ts > $SCRATCH_DIR/ReactNativeApi-before.d.ts \
46+
git fetch origin "${{ steps.api_diff.outputs.merge_base }}" --depth=1
47+
git fetch origin "${{ github.event.pull_request.head.sha }}" --depth=1
48+
git show "${{ steps.api_diff.outputs.merge_base }}":packages/react-native/ReactNativeApi.d.ts > $SCRATCH_DIR/ReactNativeApi-before.d.ts \
2949
|| echo "" > $SCRATCH_DIR/ReactNativeApi-before.d.ts
30-
git show "$PR_SHA":packages/react-native/ReactNativeApi.d.ts > $SCRATCH_DIR/ReactNativeApi-after.d.ts \
50+
git show "${{ github.event.pull_request.head.sha }}":packages/react-native/ReactNativeApi.d.ts > $SCRATCH_DIR/ReactNativeApi-after.d.ts \
3151
|| echo "" > $SCRATCH_DIR/ReactNativeApi-after.d.ts
3252
3353
- name: Run breaking change detection
54+
if: steps.api_diff.outputs.changed == 'true'
3455
shell: bash
3556
env:
3657
SCRATCH_DIR: ${{ runner.temp }}/diff-js-api-changes

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## v0.86.0-rc.2
4+
5+
### Added
6+
7+
#### Android specific
8+
9+
- **Pressable**: `android_ripple` now accepts `PlatformColor` ([60d8b282ea](https://github.com/facebook/react-native/commit/60d8b282eaf5bd2803fdaa838520f6ff41cc6737) by [@adrcotfas](https://github.com/adrcotfas))
10+
11+
### Changed
12+
13+
#### iOS specific
14+
15+
- **Build**: Cache prebuilt iOS binaries ([9a0b05b8d0](https://github.com/facebook/react-native/commit/9a0b05b8d07f3468a08077119189406d56a230ba) by [@cipolleschi](https://github.com/cipolleschi))
16+
17+
### Fixed
18+
19+
#### iOS specific
20+
21+
- **Build**: Fixed escaping local file URIs for unicode paths in ruby scripts ([9563cb5b5a](https://github.com/facebook/react-native/commit/9563cb5b5a546d6daf09abc9d5594850129a4ae3) by [@chrfalch](https://github.com/chrfalch))
22+
- **CocoaPods**: Fix Pod install checksum drifting ([814ebb12b6](https://github.com/facebook/react-native/commit/814ebb12b64cee51b91ada9fa0d90970feac9a9f) by [@chrfalch](https://github.com/chrfalch))
23+
- **CocoaPods**: Load `RCTDefines.h` first in the prebuilt React umbrella and drop the `module *` submodule wildcard so RCT_* macros propagate to consumer pods under `use_frameworks!`. ([90c303fafb](https://github.com/facebook/react-native/commit/90c303fafb941155dbe379e6b3e74390a139872a) by [@wneel](https://github.com/wneel))
24+
325
## v0.86.0-rc.1
426

527
### Fixed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ yarn add --dev @react-native/assets-registry
1818
To run the tests in this package, run the following commands from the React Native root folder:
1919

2020
1. `yarn` to install the dependencies. You just need to run this once
21-
2. `yarn jest packages/assets`.
21+
2. `yarn jest packages/assets-registry`.
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"repository": {
77
"type": "git",
88
"url": "git+https://github.com/facebook/react-native.git",
9-
"directory": "packages/assets"
9+
"directory": "packages/assets-registry"
1010
},
11-
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/assets#readme",
11+
"homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/assets-registry#readme",
1212
"keywords": [
1313
"assets",
1414
"registry",
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
export type AssetDestPathResolver = 'android' | 'generic';
1515
1616
export type PackagerAsset = {
17-
+__packager_asset: boolean,
18-
+fileSystemLocation: string,
19-
+httpServerLocation: string,
20-
+width: ?number,
21-
+height: ?number,
22-
+scales: Array<number>,
23-
+hash: string,
24-
+name: string,
25-
+type: string,
26-
+resolver?: AssetDestPathResolver,
17+
readonly __packager_asset: boolean,
18+
readonly fileSystemLocation: string,
19+
readonly httpServerLocation: string,
20+
readonly width: ?number,
21+
readonly height: ?number,
22+
readonly scales: Array<number>,
23+
readonly hash: string,
24+
readonly name: string,
25+
readonly type: string,
26+
readonly resolver?: AssetDestPathResolver,
2727
...
2828
};
2929
*/

packages/core-cli-utils/README.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)