Commit Graph

38536 Commits

Author SHA1 Message Date
Samuel Susla a5d8ea4579 delete ShadowNodeFamily::instanceHandle_ (#41513)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41513

changelog: [internal]

Reviewed By: christophpurrer

Differential Revision: D51394187

fbshipit-source-id: 3add711a3954ba16bf4524d47c3ed67473e2c0eb
2023-11-17 03:27:51 -08:00
Samuel Susla f4e9827013 delete ComponentDescriptor::createEventEmitter (#41514)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41514

changelog: [internal]

`ComponentDescriptor::createEventEmitter` can be deleted.

Reviewed By: christophpurrer

Differential Revision: D51394153

fbshipit-source-id: 7541c3cb018a009e8c9555f9a9b0d41215dca1bc
2023-11-17 03:27:51 -08:00
Rubén Norte fa89dd68b0 Define debugging name for multiple components (#41516)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41516

This cleans up some dead code in animated components (some wrappers that actually don't do anything), which in this case leads to component names being properly defined for debugging in React DevTools, etc.

Changelog: [internal]

Reviewed By: sammy-SC

Differential Revision: D51401568

fbshipit-source-id: 0de43f526b77a6b83e66e03f0ffa8d42c2b77112
2023-11-16 12:23:22 -08:00
Intl Scheduler 5730f560b9 translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907943488166
Sandcastle Job Instance ID: 27021598873857627
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D51397267

fbshipit-source-id: c404430e1f8d363a29ecc4c430a203279ab658c3
2023-11-16 06:50:34 -08:00
Pieter De Baets 6653b4eb46 Shared UiThreadHandler (#41507)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41507

Noticed we were creating this in various places and could consolidate it. This shouldn't have any perf impact since all of these use the same Handler.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D51348699

fbshipit-source-id: b11799f64cad3e9c1122e074954fce60e586d00d
2023-11-16 06:34:06 -08:00
Pieter De Baets 02ac7a11ab Unbreak CircleCI (#41508)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41508

```
> Task :packages:react-native:ReactAndroid:compileDebugKotlin FAILED
e: warnings found and -Werror specified
w: file:///root/react-native/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/JSResponderHandler.kt:55:38 The corresponding parameter in the supertype 'OnInterceptTouchEventListener' is named 'view'. This may cause problems when calling this function with named arguments.
```
Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D51394096

fbshipit-source-id: ff322a10121b529c9a39b800e16a1a8cc5977d4a
2023-11-16 05:43:04 -08:00
Dmitry Rykun 5029cef0a9 Do not include two copies of JSI when using hermes-engine (#41499)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41499

After D48152876 we consume JSI from `ReactCommon/jsi`, and ignore JSI that is distributed with `hermes-engine`.
This diff removes `include/jsi` from `source_files` of `hermes-engine` so we don't get two sets of JSI headers - one from `ReactCommon`, and the other one from `hermes-engine`.
This diff also fixes accidental breakage of ODR violation. We will no longer compile JSI into `react-native` when linking against `hermes-engine`, which already has JSI in it.
Changelog: [iOS][Fixed] - Exclude JSI headers when using hermes-engine prebuilt.

Reviewed By: cipolleschi

Differential Revision: D51347562

fbshipit-source-id: 6e4b9940c43d74d227a05999926b8752d7685670
2023-11-16 03:05:35 -08:00
fortmarek 3b68e39634 Add changelog for 0.72.7 (#41474)
Summary:
Adds changelog for the 0.72.7 release.

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[INTERNAL] [CHANGED] - Add changelog for the 0.72.7 release.

Pull Request resolved: https://github.com/facebook/react-native/pull/41474

Test Plan: Read the changelog 🤞

Reviewed By: christophpurrer

Differential Revision: D51344851

Pulled By: huntie

fbshipit-source-id: a142a76ba75665fd0e6c7104ffb008f0f4ff3c95
2023-11-16 02:48:08 -08:00
Sam Zhou a1b7a20779 Deploy 0.222.0 to xplat (#41505)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41505

Changelog: [Internal]

Reviewed By: gkz

Differential Revision: D51385560

fbshipit-source-id: 66848643776e40bd92b23d8b6147b32659ec6ec5
2023-11-16 00:43:48 -08:00
David Vacca 01729919d1 Migrate JSResponderHandler to kotlin
Summary:
Migrate JSResponderHandler to kotlin

bypass-github-export-checks

changelog: [internal] intenral

Reviewed By: rshest

Differential Revision: D51262578

fbshipit-source-id: 1c9fce769d1f0f163353cc8e05fb007ceda14b69
2023-11-15 22:43:49 -08:00
David Vacca 3f6b59eece Mark NotThreadSafeViewHierarchyUpdateDebugListener as deprecated in new architecture
Summary:
NotThreadSafeViewHierarchyUpdateDebugListener is not implemented in the new architecture because it is not relevant. That's why I'm marking NotThreadSafeViewHierarchyUpdateDebugListener as deprecated in new architecture

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D51262576

fbshipit-source-id: 05022f7605ffc9f9aee3dbb0652f331849db82e0
2023-11-15 22:43:49 -08:00
David Vacca 31db0abb41 Delete com/facebook/react/surface package
Summary:
com/facebook/react/surface package only contains one file (ReactStage), this annotation is only used internally by the framework and it fit better in uimanager package.

In this diff we are:
- deleting com/facebook/react/surface package
- moving ReactStage to com/facebook/react/uimanager
- Properly using ReactStage in ReactRoot and ReactRootView

This is a backward compatible change because ReactStage is only used in the internals of React Native

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D51262575

fbshipit-source-id: 34c140fbd0868a5a95489ee51b3262263b33ca69
2023-11-15 22:43:49 -08:00
David Vacca a86a9a392d Mark UIManagerType as depreacted in new architecture
Summary:
The new architecture will only support Fabric UIManager, that's why we will just deprecate UIManagerType as part of the new architecture

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D51262582

fbshipit-source-id: ff918ff760e95bbda39f5010b141a542c9171517
2023-11-15 22:43:49 -08:00
David Vacca 2aeeb806f1 Mark uimanager annotations as deprecated in new architecture
Summary:
This diff marks uimanager annotations as deprecated in new architecture becasue we've decided the native codegen will not be addopted in new architecture

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D51262580

fbshipit-source-id: 1248117ca697c612c89062fcee56788cce40a1ae
2023-11-15 22:43:49 -08:00
Ruslan Shestopalyuk 40a99c9345 Add and use MC killswitch for enabling paint time reporting in Event Timing API (#41501)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41501

## Changelog:
[Internal] -

Wires a switch for enabling the corresponding feature in Event Timing API.

Reviewed By: rubennorte

Differential Revision: D51341239

fbshipit-source-id: a93a1fc5bdc132ce2a2d528139091be0e4a3ec11
2023-11-15 21:38:01 -08:00
Nick Gerleman 5d55c8eeb5 Revert D50998164: Allow lazy resolution of edge dimension values
Differential Revision:
D50998164

Original commit changeset: 248396f9587e

Original Phabricator Diff: D50998164

fbshipit-source-id: 4f592158324d758bb9e3731ced36b8e3587c459c
2023-11-15 18:34:47 -08:00
Ruslan Shestopalyuk 88233cf549 Implement "paint time" support in Event Timing API (#41484)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41484

## Changelog:
[Internal] -

Uses mount hooks to report "paint time" via the Event Timing API - i.e. "duration" now corresponds not the the JS dispatch end point, but to the moment when the corresponding mount ("paint") happened on the native side.

This feature is disabled by default for now, but can be enabled via `NativePerformanceObserver.setIsReportingEventPaintTime(true);`.

Reviewed By: rubennorte

Differential Revision: D51313902

fbshipit-source-id: b15fed772056bb3af619496f805e45dd9222426d
2023-11-15 11:08:05 -08:00
David Vacca 803c5bb669 Migrate ReactHitSlopView to kotlin
Summary:
Migrate ReactHitSlopView to kotlin

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D51262574

fbshipit-source-id: 7ad625bcdff1525299a0a9c9cf3409d081231b3c
2023-11-15 09:43:03 -08:00
Riccardo Cipolleschi 7f52791767 Remove dependency on libevent (#41485)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41485

Now that React-Hermes does not depends on folly::Futures anymore, we can safely delete the `libevent` dependency.
This will speedup the pod install step and potentially also the bundle size (to be tested)

## Changelog
[Android][Removed] - Remove libevent dependency

Reviewed By: javache

Differential Revision: D51319583

fbshipit-source-id: 155cc3632b005074c43565e7281c9873ab046f0d
2023-11-15 02:01:23 -08:00
Riccardo Cipolleschi 23cf10428e Remove dependency on libevent (#41486)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41486

Now that React-Hermes does not depends on folly::Futures anymore, we can safely delete the `libevent` dependency.
This will speedup the pod install step and potentially also the bundle size (to be tested)

## Changelog
[iOS][Removed] - Remove libevent dependency

Reviewed By: javache

Differential Revision: D51307333

fbshipit-source-id: 029c1d6aaad46fc261502241f7df28b4d5f59eb9
2023-11-15 02:01:23 -08:00
Moti Zilberman 560e0f0005 Migrate to @rnx-kit/chromium-edge-launcher for Windows fix (#41367)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41367

Andrew Coates graciously published the Windows Edge launcher fix from https://github.com/cezaraugusto/chromium-edge-launcher/pull/1 as a new package (https://github.com/microsoft/rnx-kit/pull/2796), so let's pull that into `dev-middleware`.

Changelog: [Internal] - Fix experimental debugger launch flow with Edge on Windows

Reviewed By: robhogan

Differential Revision: D51086297

fbshipit-source-id: 3a8db351f71eb31a9609c987cdb4dc66f24f9403
2023-11-15 00:18:10 -08:00
Neil Dhar 255fef5263 Build shared JSI by default (#41037)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41037

Build JSI as a shared library by default. This avoids running into a
problem with duplicate JSI when building against `libhermes` as a
shared library. This is already the case for React Native on Android.

For RN's iOS builds, explicitly specify that JSI should be statically
linked.

Changelog: [Internal]

Reviewed By: dannysu

Differential Revision: D50294405

fbshipit-source-id: 5e77e6d4ab77f8e338ca5ca4154e879eb3d616d7
2023-11-14 12:34:19 -08:00
Nick Gerleman 6c4cb02e27 Allow lazy resolution of edge dimension values (#41347)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41347

X-link: https://github.com/facebook/yoga/pull/1453

This follows the previous patterns used for `Gutters` and `Dimension`, where we hide CompactValue array implementation from `yoga::Style` callers.

This allows a single read of a style to only need access to the resolved values of a single edge, vs all edges. This is cheap now because the interface is the representation, but gets expensive if `StyleValuePool` is the actual implementation.

This prevents us from needing to resolve nine dimensions, in order to read a single value like `marginLeft`. Doing this, in the new style, also lets us remove `IdxRef` from the API.

We unroll the structure dependent parts in the props parsing code, for something more verbose, but also a bit clearer.

Changelog: [Internal]

Reviewed By: joevilches

Differential Revision: D50998164

fbshipit-source-id: 248396f9587e29d62cde05ae7512d8194f60c809
2023-11-14 09:12:35 -08:00
Samuel Susla e51a058212 copy instanceHandle into UIManager::createNode (#41443)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41443

changelog: [internal]

instanceHandle is retained by UIManager::createNode. Let's make that obvious in the API.

Reviewed By: NickGerleman

Differential Revision: D51233821

fbshipit-source-id: b97ad80d3ac31a7830c24c8900caa723ca0e9c20
2023-11-14 07:51:57 -08:00
Samuel Susla 3e3a3dbe28 use react::hash_combine instead of folly::hash_combine (#41477)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41477

changelog: [internal]

Reviewed By: cipolleschi

Differential Revision: D51304535

fbshipit-source-id: d7de89c50e30a936b982c5dc568f3516ab140266
2023-11-14 07:24:55 -08:00
Rubén Norte 5948ab7515 Prevent intersectionRatio from being higher than 1 in IntersectionObserverEntry (#41448)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41448

This was possible before due to precision problems with `double` (we were seeing values like 1.000000002). This is an easy way to prevent that problem.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51230183

fbshipit-source-id: 757ef181fe369d525831faf8a6d907467efc544c
2023-11-14 06:11:13 -08:00
Rubén Norte 11aadb7287 Fix error when trying to unobserve detached targets in IntersectionObserver (#41454)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41454

Yet another problem caused by React being too aggressive cleaning up detached fibers. This fixes a problem in `IntersectionObserver` when trying to `unobserve` detached targets. In that case we didn't have access to its shadow node anymore, so we didn't have a way to unobserve in native. This keeps an additional mapping in JS to do the conversion even after detached.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51257960

fbshipit-source-id: 25edc9afd2108e141d178dd4939fc2de8286342b
2023-11-14 06:11:13 -08:00
Rubén Norte e8b08813ac Fix error when accessing detached targets from IntersectionObserver entries (#41449)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41449

`IntersectionObserver` was incorrectly throwing errors when reporting entries for detached targets. The problem was that we were deriving the target instance from the instance handle that we keep in native, but React removes the connection between them when the instance handle is unmounted.

This fixes the problem by keeping an internal mapping between instance handle and target internally in the intersection observer manager.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51210456

fbshipit-source-id: 7c4a03c14c7f756191f395e0178eadc979cce146
2023-11-14 06:11:13 -08:00
Rubén Norte a493ea43ff Remove pending records when unobserving a target in IntersectionObserver (#41450)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41450

`IntersectionObserver` shouldn't report entries for targets that are no longer being observed by the observer. This wasn't the case before because it was possible to create an intersection observer entry, then unobserve the target and then dispatch the pending entries (including the unobserved target). This fixes that issue to align with Web browsers.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51256827

fbshipit-source-id: 28035f00bcb05a8ca53140719019032b3399436c
2023-11-14 06:11:13 -08:00
Rubén Norte fc0c084df0 Guard against unmounted components when using traversal APIs (#41451)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41451

After [this change in React](https://github.com/facebook/react/pull/27687), `ReactFabric.getPublicInstanceFromInternalInstanceHandle` can return `null` if the instance handle is a fiber that was unmounted (before that PR, it would throw an error).

This modifies the DOM traversal API to gracefully handle that case.

Changelog: [internal]

Reviewed By: rshest

Differential Revision: D51210455

fbshipit-source-id: 05de682d840eed7f22473800efe5fb910c8f3a0d
2023-11-14 06:11:13 -08:00
rubennorte (Meta Employee) e0aa9abfaf Guard against unmounted components when accessing public instances on Fabric (#27687) (#41452)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41452

## Summary

This fixes an error in `getPublicInstanceFromInstanceHandle` where we
throw an error when trying to access the public instance from the fiber
of an unmounted component. This shouldn't throw but return `null`
instead.

## How did you test this change?

Updated unit tests.
Before:
<img width="969" alt="Screenshot 2023-11-10 at 15 26 14"
src="https://github.com/facebook/react/assets/117921/ea161616-2775-4fab-8d74-da4bef48d09a">

After:
<img width="1148" alt="Screenshot 2023-11-10 at 15 28 37"
src="https://github.com/facebook/react/assets/117921/db18b918-b6b6-4925-9cfc-3b4b2f3ab92d">

DiffTrain build for commit https://github.com/facebook/react/commit/6b3834a45b585e4340734139841ae81dc1b1a75d.

Test Plan: Sandcastle tests

Reviewed By: tyao1

Differential Revision: D51203276

Pulled By: rubennorte

fbshipit-source-id: 40c471843dea91573bff26f8595eb9554923e5d8
2023-11-14 06:11:13 -08:00
Rubén Norte 686f83e6fe Clean up legacy use of native modules to access ReactNativeConfig (#41473)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41473

This removes a legacy behavior in React Native to use the native module for MobileConfig to create `ReactNativeConfig`. It now uses the same implementation that the native module uses so we don't depend on TurboModule infra and we can instantiate `ReactNativeConfig` before that infra is ready.

Changelog: [internal]

Reviewed By: christophpurrer

Differential Revision: D51268579

fbshipit-source-id: 6b4860b064b45115e9c43997134e9aa771f330ea
2023-11-14 05:07:25 -08:00
Samuel Susla f1925c2668 fix use out-of-scope memory warning (#41441)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41441

changelog: [internal]

Reviewed By: cipolleschi

Differential Revision: D51233760

fbshipit-source-id: 5fc7ab22220e3d80729243e715e22e85e3ba7afa
2023-11-14 04:59:33 -08:00
Nick Gerleman caed1dc230 Make trunk builds "0.0.0" (#41423)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41423

X-link: https://github.com/facebook/yoga/pull/1466

Right now Yoga's main branch says it's 2.0.0, and RN's dirsync says its 1.14.0, but the code is really closer to what will be Yoga 3.0.0.

This changes trunk builds to "0.0.0" for clarity, which will be assigned a real version number the first time publishing a new Yoga branch.

This is separately a good practice to prevent the chance of accidental publishes causing damage.

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D51236778

fbshipit-source-id: 06cac89bcca1c707ce5c00f9c346f627eef6b4bc
2023-11-13 22:09:35 -08:00
Riccardo Cipolleschi ef3c022ebd Remove unnecessary workflows (#41453)
Summary:
This PR removes some jobs we don't need right now

## Changelog:
[Internal] - remove unnecessary jobs

Pull Request resolved: https://github.com/facebook/react-native/pull/41453

Test Plan: CircleCI stays green

Reviewed By: NickGerleman

Differential Revision: D51257788

Pulled By: cipolleschi

fbshipit-source-id: e348a7ef7af469ba019b2ccc33feed79a9d4febe
2023-11-13 22:07:51 -08:00
Phillip Pan d502380b91 pass down sync void config to jsi module (#41470)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41470

Changelog: [Internal]

actually pass down the config value -_-

Reviewed By: christophpurrer

Differential Revision: D51279435

fbshipit-source-id: 674d7558a30742f6bf67cacfb4025e3c7d3646f7
2023-11-13 20:58:16 -08:00
Phillip Pan 8feb84a447 put PR#41194 behind gating (#41469)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41469

Changelog: [Internal]

PR#41194 (https://github.com/facebook/react-native/pull/41194) introduces a new callsite to `RCTUnsafeExecuteOnMainQueueSync` in the module init path, which increases risk for deadlock. let's gate it

Differential Revision: D51274859

fbshipit-source-id: b2ab6d42378d2885def1fdad61e1de0f6e6285cd
2023-11-13 18:49:28 -08:00
Jane Li ad0f064852 Fix flickering (#41461)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41461

D51179007 updated the layout spec so that we wouldn't have the weird spacing. However, it introduced some weird flickering through the app.

Upon investigating in layout inspector, I found that the issue actually isn't the rn_fragment, it's the rootview being created without the proper specs. This updates the ReactNavigationFragment so that the root view gets the correct specs, similar to how it's done here: https://www.internalfb.com/code/fbsource/[80683c89da108bba70bfe60340f80c6613960119]/fbandroid/java/com/facebook/fbreact/navigation/ReactNavigationActivityDelegate.java?lines=109

[changelog] internal

Reviewed By: jessebwr

Differential Revision: D51267353

fbshipit-source-id: 6deb5f29e8a73d9cf38cb9445d69ab041b974ec8
2023-11-13 14:30:44 -08:00
David Vacca 15b0626a8e Migrate ReactInterceptingViewGroup to kotlin
Summary:
Migrate ReactInterceptingViewGroup to kotlin

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D51262573

fbshipit-source-id: fe233d7f02b4e8165300e8929707396ccab272c8
2023-11-13 14:24:02 -08:00
David Vacca 915b3c1f21 Fix lints
Summary:
Fixing lint warningns and errors found during analysis

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D51262579

fbshipit-source-id: 3644b07cd7504c012826faa98249958062366534
2023-11-13 14:24:02 -08:00
David Vacca 453ba67a78 Migrate OnInterceptTouchEventListener to kotlin
Summary:
Migrate OnInterceptTouchEventListener to kotlin

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: rshest

Differential Revision: D51262581

fbshipit-source-id: 06be429db2b871e0173c71bad26811a652a86c5c
2023-11-13 14:24:02 -08:00
Christoph Purrer 1eff870f4c react-native: JavaTurboModule > Remove unused imports (#41435)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41435

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D51243602

fbshipit-source-id: 32c45a25d3efd52652814c6c119fc91d18eb1f08
2023-11-13 14:02:07 -08:00
Gijs Weterings 453e5c0d09 Temporarily disable InspectorProxy.* tests to unblock CI (#41463)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41463

S378983 Circle CI tests have been red for 5 days. There's a test setup issue somewhere in this test suite, until motiz88 can determine where exactly, let's disable them

T169943794 filed to follow up

Changelog: Internal

Reviewed By: cipolleschi

Differential Revision: D51271630

fbshipit-source-id: 7dbc61bb4c8df0d5360ba239a1f00c4270a691f3
2023-11-13 13:24:47 -08:00
Riccardo Cipolleschi 6962b5fdd0 Move test_windows under test_JS (#41455)
Summary:
CircleCI was broken since Friday because a change broke JS tests on Windows only.
The test_windows job didn't run on those changes because they were JS changes only, therefore won't affect the build of React Native on Windows.

The `test_windows` was listed among the various `test_android` jobs, but it is not actually building React Native android on windows machines.
Instead, the test_windows jobs is actually only running JS tests on a windows machines. Therefore, it makes more sense to have this test under the test_js group.

bypass-github-export-checks

## Changelog:
[Internal] - Move the test_windows job under the testJS configuration

Pull Request resolved: https://github.com/facebook/react-native/pull/41455

Test Plan:
CircleCI is green.
test_windows run together with the JS tests

Reviewed By: mdvacca

Differential Revision: D51258120

Pulled By: cipolleschi

fbshipit-source-id: a523c48f697b64620433ec9672f13baa308d75a8
2023-11-13 10:09:13 -08:00
Ruslan Lesiutin a226b9084d refactor[InspectorOverlay]: migrate to functional component (#41410)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41410

Changelog: [Internal]

I am planning some changes in this component. No functional changes in this diff.

Reviewed By: robhogan

Differential Revision: D50644901

fbshipit-source-id: 5464640d64bf2e50696d7e579b30985b6ceaef5a
2023-11-13 08:20:26 -08:00
Ruslan Lesiutin 066cb2bfd5 refactor[Inspector]: migrate to functional component (#41411)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41411

Changelog: [Internal]

I am planning some changes in this component. No functional changes in this diff, except for the `panelContainerStyle` change for iOS to fix top gap.

Reviewed By: robhogan

Differential Revision: D50644902

fbshipit-source-id: 3111da100261552c89d0cd4eae724500c446cdfd
2023-11-13 08:20:26 -08:00
Tommy Nguyen 3dd6a83c0e Fix build_codegen! not finding @react-native/codegen in pnpm setups (#41399)
Summary:
`build_codegen!` currently assumes that `react-native/codegen` gets installed next to `react-native`. In a pnpm setup, it's found under `/~/react-native/node_modules/react-native/codegen` instead.

However, as dmytrorykun pointed out, we don't actually need to build it outside of this repository.

## Changelog:

[GENERAL] [FIXED] - `react-native/codegen` shouldn't be built unless it's in the repo — fixes `pod install` failures in pnpm setups

Pull Request resolved: https://github.com/facebook/react-native/pull/41399

Test Plan: We have a patched version of `react-native` working in a pnpm setup here: https://github.com/microsoft/rnx-kit/pull/2811

Reviewed By: dmytrorykun

Differential Revision: D51201643

Pulled By: cipolleschi

fbshipit-source-id: 53767ae08686a20f03b3b93abcbc7d5383083872
2023-11-13 07:58:58 -08:00
zhongwuzw 6eef3661bf Remove duplicated category NSTextStorage+FontScaling (#41437)
Summary:
We have two same categories of `NSTextStorage+FontScaling`, another one is  https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Text/Text/NSTextStorage%2BFontScaling.h. Only one category is valid, so we can delete one.

## Changelog:

[IOS] [FIXED] - Remove duplicated category NSTextStorage+FontScaling

Pull Request resolved: https://github.com/facebook/react-native/pull/41437

Test Plan: Null.

Reviewed By: rshest

Differential Revision: D51253572

Pulled By: javache

fbshipit-source-id: 4229351bf29699076d740defec64b61ea2151063
2023-11-13 06:14:23 -08:00
Moti Zilberman 4c0d20dfbf Fix platform sensitivity in inspector-proxy tests (#41439)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41439

TSIA - should fix the [Windows test failure](https://app.circleci.com/pipelines/github/facebook/react-native/36174/workflows/055cabb6-cb41-4741-812a-59b06fc7c9b5/jobs/1200335/parallel-runs/0/steps/0-115?fbclid=IwAR38F8tE-831Rpe5J_KeFOmA5DARLWWYIAiLIgkXOLdEfMmSeaVOIGgPq5U) we saw on CircleCI.

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D51254843

fbshipit-source-id: d45682c460d54b3d76d3a02416b75f0c11313fd7
2023-11-13 05:12:00 -08:00
Pieter De Baets 92c5bf858e Remove unreferenced CalledOnceMovableOnlyFunction (#41440)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41440

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D51254054

fbshipit-source-id: 222191bb03959077d86e52ad5bb6833bc6e7e4cd
2023-11-13 05:02:47 -08:00