Commit Graph
29973 Commits
Author SHA1 Message Date
szymonrybczakandFacebook GitHub Bot 8bcaed90c1 Update profiler button to use "Toggle" string. (#41900)
Summary:
Fixes https://github.com/facebook/react-native/issues/38192, this issue wasn't fixed properly, cortinico fixed same case but for inspector button.

## Changelog:

[ANDROID] [FIXED] - Update profiler button to use "Toggle" string.

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

Test Plan: CI

Reviewed By: cortinico

Differential Revision: D52049181

Pulled By: ryancat

fbshipit-source-id: 9225edb3a5a582b879f4ebb835f6ac52cba4c042
2023-12-12 03:09:53 -08:00
Yugo OguraandFacebook GitHub Bot da3ba74240 fix: paddingTop problem for multiline TextInput (#41772)
Summary:
Fixed: https://github.com/facebook/react-native/issues/41773

## Changelog:

[GENERAL] [FIXED] - not applying `multilineInput` when props's style has paddingTop related style

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

Pick one each for the category and type tags:

[GENERAL] [FIXED] - Message

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

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

Reviewed By: NickGerleman

Differential Revision: D51894473

Pulled By: yungsters

fbshipit-source-id: f11466100111cd8dd5f36bdbd4eb99f6a1633d66
2023-12-12 02:13:43 -08:00
Vincent RiemerandFacebook GitHub Bot 952b32b06d Clean up eventTarget retaining logic in the pointer event processor (#41471)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41471

Changelog: [Internal] - Clean up eventTarget retaining logic in the pointer event processor

This refactors calls to EventTarget::retain/release to occur in the actual methods that require the event target to be retained instead of expecting the caller to manage that which should be more maintainable.

Reviewed By: sammy-SC

Differential Revision: D51279974

fbshipit-source-id: db7251504a44ca59e4475928af7e6cf993cfa6e3
2023-12-11 14:39:27 -08:00
Lulu WuandFacebook GitHub Bot ca9b6b5038 Ignore the one-time NullPointerException and print error log
Summary:
Why ignore for now?
- It only happen once during initialization and doesn't cause any breakages for RNTester
- The race condition happens in Android System code which is hard to tackle:
```Exception in native call
java.lang.NullPointerException: java.lang.NullPointerException
	at com.facebook.jni.NativeRunnable.run(Native Method)
	at android.os.Handler.handleCallback(Handler.java:958)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:30)
	at android.os.Looper.loopOnce(Looper.java:205)
	at android.os.Looper.loop(Looper.java:294)
	at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:235)
	at java.lang.Thread.run(Thread.java:1012)
```
From stack trace message.callback is checked in
```at android.os.Handler.dispatchMessage(Handler.java:99)```
but becomes null in
```at android.os.Handler.handleCallback(Handler.java:958)```

[Android source code](https://l.facebook.com/l.php?u=https%3A%2F%2Fandroid.googlesource.com%2Fplatform%2Fframeworks%2Fbase%2F%2B%2Fmaster%2Fcore%2Fjava%2Fandroid%2Fos%2FHandler.java&h=AT1aQS0Vmknao8kLbYE_hhLj1G3idUf69jFQE3ZLAqjrbcMX4OdQUV1dzZpAkAvLaZ9HAOanpsKCC8z59Ce9XJa6cOhQL2L95gM9iMrSr7FbrpTKPLKbWjDmTz89WUL2pQprnBVKyA8) of Handler.

Reviewed By: cortinico

Differential Revision: D51550240

fbshipit-source-id: 6288e196da1da88a37f5c69bfce82e3e09c6f106
2023-12-11 12:30:18 -08:00
Joe VilchesandFacebook GitHub Bot 3fb47c5411 Add position type to LayoutMetrics (#41819)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41819

This will be needed in order to access the position type while implementing offsetLeft/Top, which needs to know if a node is static or not to get the proper offset. This is simply making the position type available to be read from LayoutMetrics.

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D51412428

fbshipit-source-id: b101d8065ddfe0322f77f64d1de0f9ead3975c60
2023-12-11 10:59:31 -08:00
Arushi KesarwaniandFacebook GitHub Bot 37c7f8433f Revert D51610399: Removing Fabric check from UIManagerProvider
Differential Revision:
D51610399

Original commit changeset: 1d868111dd2b

Original Phabricator Diff: D51610399

fbshipit-source-id: e8f84782ee94729f580ed96321ed9f66aaff363b
2023-12-11 10:14:15 -08:00
Oskar KwaśniewskiandFacebook GitHub Bot 7d1a98c43b Lint source files, sort imports, remove unused imports (#41829)
Summary:
This PR lints source files using eslint. I've executed `yarn lint --fix` and also manually fixed some of eslint issues.

Before:

![CleanShot 2023-12-07 at 12 07 10@2x](https://github.com/facebook/react-native/assets/52801365/2b00cf23-e5a0-46b8-802f-adcb67224111)

After:

![CleanShot 2023-12-07 at 12 06 24@2x](https://github.com/facebook/react-native/assets/52801365/bb05b2c0-2b27-4f99-b7b4-cb47a51a3885)

## Changelog:

[GENERAL] [FIXED] - Lint source files, sort imports, remove unused ones

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

Test Plan: CI Green

Reviewed By: christophpurrer

Differential Revision: D51979074

Pulled By: dmytrorykun

fbshipit-source-id: e11b90721e33f5e9949a0833e5f39fe7ba3d1067
2023-12-11 08:54:29 -08:00
Qian WuandFacebook GitHub Bot 6b532c7ec4 Revert D52033328: Convert the last Unit Tests to Kotlin
Differential Revision:
D52033328

Original commit changeset: fabe19f88129

Original Phabricator Diff: D52033328

fbshipit-source-id: 3186196dd6df1bd720164894828f8fd1c9215710
2023-12-11 08:07:55 -08:00
MorritzandFacebook GitHub Bot 9f28616650 Enhance IP address retrieval for iOS devices in Metro bundler setup (#41839)
Summary:
After introducing this commit https://github.com/facebook/react-native/commit/a56e5dad7c31b6e9e6b02333219bc33811215056 script may fail in some circumstances.

Example:
When there is IP address available only for en1 and not en0, first "ipconfig" command in the loop fails with error code 1 and cancels whole script.

## Changelog:
[iOS] [Fixed] - [enhance IP address retrieval for iOS devices in Metro bundler setup](https://github.com/facebook/react-native/pull/41839/commits/6a351db158dadf944933173aa0150435c742001f)

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

Reviewed By: christophpurrer

Differential Revision: D51979040

Pulled By: dmytrorykun

fbshipit-source-id: 0f6f42a7dd70bac012875ffae5d651b74b225c94
2023-12-11 07:08:48 -08:00
Nicola CortiandFacebook GitHub Bot 4a565e750e Convert the last Unit Tests to Kotlin (#41889)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41889

Resubmit of D51891716

I'm doing a pass and converting the last Java Unit Tests we had to Kotlin
I've also re-enabled multiple tests that were disabled in the past.

Changelog:
[Internal] [Changed] - Convert the last Unit Tests to Kotlin

Reviewed By: GijsWeterings

Differential Revision: D52033328

fbshipit-source-id: fabe19f88129f5c4b1d77d45cf5089117aed439e
2023-12-11 07:03:23 -08:00
Rui YingandFacebook GitHub Bot a0b76d90b7 Fix NSAppTransportSecurity being overwritten during pod install (#41875)
Summary:
This PR fixes https://github.com/facebook/react-native/issues/41874.

## 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
-->

[iOS] [Fixed] - Fix NSAppTransportSecurity being overwritten during pod install

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

Test Plan:
1. Delete the whole `NSAppTransportSecurity` in Info.plist and run `pod install`: `NSAllowsArbitraryLoads` and `NSAllowsLocalNetworking` are added as expected.
2. Modify `NSAppTransportSecurity` to only contain `NSExceptionDomains` and run `pod install`: `NSAllowsArbitraryLoads` and `NSAllowsLocalNetworking` are added, and `NSExceptionDomains` is still there.
3. Run `pod install` again: nothing changes.

Reviewed By: christophpurrer

Differential Revision: D52032400

Pulled By: dmytrorykun

fbshipit-source-id: 48cf29809c283af80613ffbf1ac0dc663a0a2fb5
2023-12-11 06:33:05 -08:00
Lulu WuandFacebook GitHub Bot e4887a587a Fix dev menu not open
Summary:
Bridgeless dev menu couldn't open due to self.bridge being null here.

Changelog:
[Android][Changed] - Fix dev menu not open for Bridgeless

Reviewed By: cortinico

Differential Revision: D51746610

fbshipit-source-id: 2e9bab686c965271bbfad264ff22ff61e28849c3
2023-12-11 06:06:12 -08:00
Michał PierzchałaandFacebook GitHub Bot 547643e6e3 Fix init for out-of-tree platforms by passing name to CLI (#41723)
Summary:
To unlock ~~certain OOT platform capabilities~~ seamless `init` integration for out-of-tree platforms with CLI, we need to pass the package name to it. This change landed on 0.73 branch already: https://github.com/facebook/react-native/pull/41530

Depends on https://github.com/facebook/react-native/issues/41722

## Changelog:

[INTERNAL] [ADDED] - Fix init for out-of-tree platforms by passing name to CLI

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

Test Plan: CI green

Reviewed By: christophpurrer

Differential Revision: D51979329

Pulled By: dmytrorykun

fbshipit-source-id: 451f70dc42ae0667bc65cba2e77898c9eec8d9ec
2023-12-11 06:01:05 -08:00
Alex HuntandFacebook GitHub Bot 6a52025031 Update docs link for metro.config.js in template (#41855)
Summary:
Small edit to point to the newer React Native docs guide for Metro, which includes more clarity on the `metro.config.js` file setup in React Native projects.

Changelog: [Internal]

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

Test Plan: —

Reviewed By: christophpurrer

Differential Revision: D52031862

Pulled By: huntie

fbshipit-source-id: 705418f35e5f6a3eddbec129e283773bb9d0f89c
2023-12-11 05:48:34 -08:00
Arushi KesarwaniandFacebook GitHub Bot 8832ddab20 Removing Fabric check from UIManagerProvider (#41880)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41880

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

Moving the check for Fabric i.e. `ReactFeatureFlags.enableFabricRenderer` to old JSI Module path logic instead of new UIManagerProvider path for Fabric initialization

Reviewed By: philIip

Differential Revision: D51610399

fbshipit-source-id: 1d868111dd2b65ac8d69198f7ab115ac8a2b43ec
2023-12-11 03:40:09 -08:00
Michał PierzchałaandFacebook GitHub Bot 6e88d67b8c Bump CLI to 13.0.0 (#41722)
Summary:
Updates the RN CLI to v13.0.0, which targets main and future 0.74

## Changelog:

[GENERAL] [CHANGED] - Bump CLI to v13.0.0

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

Reviewed By: robhogan

Differential Revision: D51809848

Pulled By: huntie

fbshipit-source-id: 653d747526bec5c4f766c22ffd3fcae8eac620a0
2023-12-10 18:13:00 -08:00
Billy NgandFacebook GitHub Bot a9dd43c5c6 Revert D51891716: Convert the last Unit Tests to Kotlin
Differential Revision:
D51891716

Original commit changeset: 7f953cf039a7

Original Phabricator Diff: D51891716

fbshipit-source-id: 43fc6362d9d3b976029d8c7f7f2841abf36a2217
2023-12-08 13:51:02 -08:00
David VaccaandFacebook GitHub Bot 82652f89cd commit ReactAndroid.api (#41847)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41847

Create first version of binary compatibility api metadata file (ReactAndroid.api)

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D51429463

fbshipit-source-id: 34befd148d0d46a2161a97dce5c865eca777ecbb
2023-12-08 12:40:11 -08:00
Moti ZilbermanandFacebook GitHub Bot 5df1940225 Update sort-imports lint rule to latest (#41841)
Summary:
@public

TSIA

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

Changelog: [Internal]

Reviewed By: robhogan

Differential Revision: D51946720

fbshipit-source-id: 28b55c3555b4757f13b896068c5b43ac761fc5cf
2023-12-08 11:07:55 -08:00
Nicola CortiandFacebook GitHub Bot 99ad36445c Convert the last Unit Tests to Kotlin (#41852)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41852

I'm doing a pass and converting the last Java Unit Tests we had to Kotlin
I've also re-enabled multiple tests that were disabled in the past.

Changelog:
[Internal] [Changed] - Convert the last Unit Tests to Kotlin

Reviewed By: mdvacca

Differential Revision: D51891716

fbshipit-source-id: 7f953cf039a7b45bd773d1995253b4db262f8d22
2023-12-08 10:19:25 -08:00
Oskar KwaśniewskiandFacebook GitHub Bot 1e0fc76325 fix: add build generated files to *ignore config (#41826)
Summary:
This PR adds build generated files to *ignore config files. This allows to locally run `yarn lint`

## Changelog:

[INTERNAL] [ADDED] - Add build generated files to local config files

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

Test Plan: CI Green

Reviewed By: huntie

Differential Revision: D51939024

Pulled By: cortinico

fbshipit-source-id: cfd6c1c13dd23c692859cd06fa5955024fafc522
2023-12-08 10:17:31 -08:00
Nicola CortiandFacebook GitHub Bot a78a8e1289 Remove internal references of onCatalystInstanceDestroy() (#41835)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41835

This removes internal usages of `onCatalystInstanceDestroy`.

The method is still available inside `NativeModule` but is `Deprecated(forRemoval = true)` so we're getting warning of its usages all over the places.

Changelog:
[Internal] [Changed] - Remove internal references of onCatalystInstanceDestroy()

Reviewed By: hoxyq

Differential Revision: D51589276

fbshipit-source-id: 84ed4d099a444977b95b4ef00e53750b79018e6f
2023-12-08 08:48:41 -08:00
Joe VilchesandFacebook GitHub Bot 31005b7fd9 Fix issues with aligning absolute nodes (#41692)
Summary:
X-link: https://github.com/facebook/yoga/pull/1490

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

In the previous diffs I fixed problems with justifying absolute nodes. The same issues plague aligning so I fixed them in the same way. Added tests that were failing before but now passing

Reviewed By: NickGerleman

Differential Revision: D51404489

fbshipit-source-id: 604495d651eb67cfdcca40df9d8d3a125c5741a8
2023-12-07 21:25:45 -08:00
Joe VilchesandFacebook GitHub Bot 579ef2b3fb Fix issue where we were not applying flex end correctly when justifying (#41691)
Summary:
X-link: https://github.com/facebook/yoga/pull/1487

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

The code here was just wrong. I changed it to be the same logic as the Justify:FlexStart case, but with the flex end sides. Then I get the position for the opposite edge since we need to write to flex start side.

Reviewed By: NickGerleman

Differential Revision: D51383792

fbshipit-source-id: 372835a44edff361dbd84dd92ff9f2ec844b9f9c
2023-12-07 21:25:45 -08:00
Joe VilchesandFacebook GitHub Bot 983e784a3e Fix issue where we were not centering absolute nodes correctly when justifying (#41690)
Summary:
X-link: https://github.com/facebook/yoga/pull/1489

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

Centering involves centering the margin box in the content box of the parent, and then getting the distance from the flex start edge of the parent to the child

Reviewed By: NickGerleman

Differential Revision: D51383625

fbshipit-source-id: 6bbbace95689ef39c35303bea4b99505952df457
2023-12-07 21:25:45 -08:00
Joe VilchesandFacebook GitHub Bot 5b05c79d8c Fix bug where we used border box for size of containing block in a certain case (#41688)
Summary:
X-link: https://github.com/facebook/yoga/pull/1486

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

Somehow missed this case. We never want to measure the CB as that gets border box but we want padding box

Reviewed By: NickGerleman

Differential Revision: D51376309

fbshipit-source-id: 2b5119c421ef92fadb28a70254cb7fe02aeb8c28
2023-12-07 21:25:45 -08:00
Joe VilchesandFacebook GitHub Bot ea3dd6b4f2 Fix bug with align start not taking into account parent padding (#41687)
Summary:
X-link: https://github.com/facebook/yoga/pull/1484

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

Tsia. Added test and accounted for parent padding

Reviewed By: NickGerleman

Differential Revision: D51374086

fbshipit-source-id: ed9d79887aa1613ea93c10c639cd1465271d23d8
2023-12-07 21:25:45 -08:00
Joe VilchesandFacebook GitHub Bot e826d1c336 Fix issue where percentages were off of the border box, not padding box (#41686)
Summary:
X-link: https://github.com/facebook/yoga/pull/1485

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

The size of the containing block is the size of the padding box of the containing node for absolute nodes. We were looking at  `containingNode->getLayout().measuredDimension(Dimension::Width)` which is the border box. So we need to subtract the border from this.

Added a test that was failing before this change as well

Reviewed By: NickGerleman

Differential Revision: D51330526

fbshipit-source-id: adc448dfb71b54f1bbed0d9d61c5553bda4b106c
2023-12-07 21:25:45 -08:00
Joe VilchesandFacebook GitHub Bot 475036d2cd Make position static behave like position static (#41685)
Summary:
X-link: https://github.com/facebook/yoga/pull/1482

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

This is the final step (that I know of) to get the core features of static working. Here we turn on all of the tests and pass down the correct owner size for the call to `calculateLayoutInternal` that is in `layoutAbsoluteChild`

Reviewed By: NickGerleman

Differential Revision: D51293606

fbshipit-source-id: 972259e7ebecb19b55aef2ef866bd7cb57aaf0ca
2023-12-07 21:25:45 -08:00
Joe VilchesandFacebook GitHub Bot 6025d50925 Make positionAbsoluteChild the sole place that matters when determining absolute node's position (#41684)
Summary:
X-link: https://github.com/facebook/yoga/pull/1481

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

Absolute nodes can be laid out by themselves and do not have to care about what is happening to their siblings. Because of this we can make `positionAbsoluteChild` the sole place where we handle this logic. Right now that is scattered around algorithm with many `if (child is absolute)` cases everywhere. This makes implementing position static a lot harder since we are relying on the CB to do all this work, not the parent.

With this change the only time we set position for an absolute node and it matter (i.e. not overwritten) is in `positionAbsoluteChild`

Reviewed By: NickGerleman

Differential Revision: D51290723

fbshipit-source-id: 405d81b1d28826cbb0323dc117c406a44d381dff
2023-12-07 21:25:45 -08:00
Alex HuntandFacebook GitHub Bot 80812658e0 Sync debugger-frontend (12a45e0) (#41840)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41840

Sync `react-native/debugger-frontend`. Includes:

- https://github.com/facebookexperimental/rn-chrome-devtools-frontend/pull/2

Changelog: [Internal]

Differential Revision: D51946121

fbshipit-source-id: 8118cb5075aa86d95bbd8e1ba56a73360122aaab
2023-12-07 09:52:07 -08:00
Cedric van PuttenandFacebook GitHub Bot 8ef807bfb2 feature(dev-middleware): add enableNetworkInspector experiment (#41787)
Summary:
This enables the network panel/inspector by passing the `unstable_enableNetworkPanel=true` to the React Native JS Inspector. (See https://github.com/facebookexperimental/rn-chrome-devtools-frontend/pull/2)

By setting this inside the `experiments`, we can enable/disable network related CDP handlers within the proxy.

## Changelog:

[GENERAL] [ADDED] - Add `enableNetworkInspector` experiment to enable Network panel and CDP handlers in inspector proxy

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

Test Plan: TBD, will provide a repository using an Expo canary / RN 0.73.0-rc release.

Reviewed By: NickGerleman

Differential Revision: D51811892

Pulled By: huntie

fbshipit-source-id: 541d96b6f0735104a4050a24a152e1158871ed1d
2023-12-07 08:30:03 -08:00
Christoph PurrerandFacebook GitHub Bot a8ca9b022b rntester-ios : Fix Bundle path (internal) (#41825)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41825

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D51937593

fbshipit-source-id: 2f4a4e49487b7031cd91deda2bc6916f195ee734
2023-12-07 03:52:52 -08:00
Nicola CortiandFacebook GitHub Bot d8aa1a3c64 Bump Android Docker Image to v12 (#41828)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41828

Bumping the docker image used inside CircleCI to v12
This image contains NDK 26.0.10792818 which was bumped recently.

Without it the CI will attempt to download it everytime consuming time and bandwidth

Changelog:
[Internal] [Changed] - Bump Android Docker Image to v12

Reviewed By: NickGerleman

Differential Revision: D51897068

fbshipit-source-id: a510568efc2574917d94371eeab6f0a53550bc1d
2023-12-07 03:43:26 -08:00
KamilandFacebook GitHub Bot 186fc85c8f refactor: convert ReactPropForShadowNodeSetterTest to kotlin (#41774)
Summary:
This PR convert `ReactPropForShadowNodeSetterTest` to kotlin as part of https://github.com/facebook/react-native/issues/38825

## Changelog:

[INTERNAL] [CHANGED] - Convert ReactPropForShadowNodeSetterTest to kotlin

<!-- 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

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

Test Plan:
```
./gradlew :packages:react-native:ReactAndroid:test
```

Reviewed By: NickGerleman

Differential Revision: D51882685

Pulled By: cortinico

fbshipit-source-id: ff1cce824dc342200f1f5ccbb297b955747b10c8
2023-12-07 03:17:37 -08:00
Nicola CortiandFacebook GitHub Bot 38d07eb284 Adds "Needs: Author Feedback" if "Needs: Repro" is applied
Summary:
As the title says, if we discover that an issue needs a repro, then we should also apply
the "Needs: Author Feedback" as that will make the issue stale quicker (30 days) rather than (90)

Changelog:
[Internal] [Changed] - Adds "Needs: Author Feedback" if "Needs: Repro" is applied

Reviewed By: NickGerleman

Differential Revision: D51895945

fbshipit-source-id: 3ed651aec96795ada3e7c28b0f1e68d68f7fc870
2023-12-07 02:56:49 -08:00
David VaccaandFacebook GitHub Bot 18f8a53d85 Fix lint warns and errors in ReactEditText (#41820)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41820

Fix lint warns and errors in ReactEditText

changelog: [internal] internal

Reviewed By: NickGerleman

Differential Revision: D51919967

fbshipit-source-id: e32d69f7d950f2577a1fcb372d501db83322d61c
2023-12-07 01:53:08 -08:00
Nicola CortiandFacebook GitHub Bot eb661df2a9 Move several libraries to static linking (#41815)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41815

Our Apps in OSS ends up shipping with too many .so files.
I'm attempting to move several libraries from dynamic to static.

This is a first round of it affecnting only libraries which are not
exposed via prefab and that are not having an OnLoad method

Changelog:
[Internal] [Changed] - Move several libraries to static linking

Reviewed By: NickGerleman

Differential Revision: D51895785

fbshipit-source-id: 1ba2dbbbae6b6c2639ba0e064f1b331b2a157f03
2023-12-06 09:07:03 -08:00
fortmarekandFacebook GitHub Bot 89f75c53cf Add changelog for 0.73.0 [skip ci] (#41741)
Summary:
Adds changelog for the 0.73.0 release. The changelog was generated using the following command: `npx rnx-kit/rn-changelog-generator --base v0.73.0-rc.4 --compare v0.73.0-rc.8`

## 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.73.0 release.

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

Test Plan: Read the changelog 🤞

Reviewed By: rubennorte

Differential Revision: D51892080

Pulled By: huntie

fbshipit-source-id: 191ece6dbb1a65210efb16e13fdab49b55b84145
2023-12-06 05:33:06 -08:00
Ruslan LesiutinandFacebook GitHub Bot 78c8681884 feat: support isChildPublicInstance from renderer (#41806)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41806

Changelog: [Internal]

Adds `isChildPublicInstance` to renderers implementations, which makes it available for usage from `RendererProxy`.

Reviewed By: rubennorte

Differential Revision: D51822905

fbshipit-source-id: 3ac92ead9d31dd3c7e5e7764daf27fe5f0eca942
2023-12-06 05:22:10 -08:00
Christoph PurrerandFacebook GitHub Bot db609ff0c6 Add function properties to C++ TM complex datatyes (#41810)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41810

Changelog: [Internal]

Reviewed By: zeyap

Differential Revision: D51858746

fbshipit-source-id: e45ee68fc40e8b7ae3388ecdcedfec646d022e19
2023-12-05 23:27:06 -08:00
hoxyq (Meta Employee)andFacebook GitHub Bot 616a907798 fix: add isChildPublicInstance to ReactNativeTypes (#27788) (#41807)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41807

Changelog: [Internal]

Follow-up on https://github.com/facebook/react/pull/27783.

React Native is actually using `ReactNativeTypes`, which are synced from
this repo. In order to make `isChildPublicInstance` visible for
renderers inside React Native repository, we need to list it in
`ReactNativeTypes`.

Because of current circular dependency between React Native and React,
it is impossible to actually type it properly:
- Can't import any types in `ReactNativeTypes` from local files, because
it will break React Native, once synced.
- Implementations can't use real types in their definitions, because it
will break these checks:

https://github.com/facebook/react/blob/223db40d5a04dc3311f963f5296675f7f43139e8/packages/react-native-renderer/fabric.js#L12-L13

https://github.com/facebook/react/blob/223db40d5a04dc3311f963f5296675f7f43139e8/packages/react-native-renderer/index.js#L12-L14

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

Test Plan: Sandcastle tests

Reviewed By: kassens

Differential Revision: D51849040

Pulled By: hoxyq

fbshipit-source-id: f75593e44c114289ad4c6fb8b4b37c4c5fd6d3d4
2023-12-05 18:04:40 -08:00
Ramanpreet NaraandFacebook GitHub Bot 73d0cf502d Introduce cxxreactpackage provider into default tmmdelegate (#41735)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41735

Changelog: [Internal]

Reviewed By: christophpurrer

Differential Revision: D51734655

fbshipit-source-id: 2966e9d7ef0af852750c35b35ec39d9e8f9b9a80
2023-12-05 16:55:16 -08:00
Nick GerlemanandFacebook GitHub Bot 1c57e969fb Test against XCode 14.3 and 15 (#41798)
Summary:
Apple will require XCode 15 next year to ship to the app store, and it aligns with how we build and test React Native internally.

XCode 15 and 14.3 add support for a lot of [missing C++ 20 features](https://developer.apple.com/xcode/cpp/#c++20) from earlier versions as well.

Last I was aware, Riccardo was onboard with bumping min supported in 0.74 to XCode 15. This change does a slightly more conservative bump to min 14.3, and main of 15.0 (though we might want to move these before 0.74 comes out).

All of this will get migrated over to GHA soon enough as well, but... formalizing this is the only thing blocking usage of C++ 20 ranges today.

Changelog:
[ios][breaking] - Require XCode >= 14.3

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

Test Plan:
1. CircleCI Passes
2. Can still boot RNTester from XCode with code signing related changes.

Reviewed By: cortinico

Differential Revision: D51840617

Pulled By: NickGerleman

fbshipit-source-id: 58f8951a436eb7c892a00432a8aad0ddd0a49da1
2023-12-05 15:35:05 -08:00
Ruslan ShestopalyukandFacebook GitHub Bot e3d1e15939 Use okhttp4 for buck-based Android unit tests (#41812)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41812

# Changelog:
[Internal]-

This makes sure that unit tests that use okhttp, do consistently use okhttp v4 for both gradle and buck based workflows when running tests.

Reviewed By: christophpurrer

Differential Revision: D51864344

fbshipit-source-id: 7fd80fd1e7e9ccdc5ec75a41c5dd03f9fc2751a0
2023-12-05 14:30:40 -08:00
kassens (Meta Employee)andFacebook GitHub Bot b2d4236749 Flow: make more objects exact (#27790)
Summary:
Changelog: [Internal]

This makes a couple objects more exact. Nothing critical, just noticed
this old branch I had created when doing some Flow upgrades in the past.

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

Reviewed By: hoxyq

Differential Revision: D51824015

Pulled By: kassens

fbshipit-source-id: ecadc98ffb233d6458c65c38150a29ff65a10121
2023-12-05 14:09:39 -08:00
David VaccaandFacebook GitHub Bot 704f07b98e Extract binaryCompatibilityValidator into gradle.properties file (#41811)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41811

In this diff I'm extracting binaryCompatibilityValidator configuration into gradle.properties file. The goal is to reuse these properties from BUCK

changelog:[Internal] internal

Reviewed By: cortinico

Differential Revision: D51402033

fbshipit-source-id: 9b585dd07c5c00a39caadac47a2f0d605c5419f2
2023-12-05 13:36:34 -08:00
Nicola CortiandFacebook GitHub Bot ff77680387 Remove dead unit tests related to text/layout property settings. (#41804)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41804

Those 4 tests are Ignored since a while and I haven't found a easy way to re-enable them. I believe we can safely delete them.

Changelog:
[Internal] [Changed] - Remove dead unit tests related to text/layout property settings.

Reviewed By: sammy-SC

Differential Revision: D51848089

fbshipit-source-id: 89880f5402774cb0560ac8fe4ba21e1e44c24889
2023-12-05 10:50:55 -08:00
Sam ZhouandFacebook GitHub Bot ea309a7583 Deploy 0.223.3 to xplat (#41809)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/41809

Changelog: [Internal]

Reviewed By: samwgoldman

Differential Revision: D51855821

fbshipit-source-id: 4fe9c937aff925150fb015be2ea93fa120e7f462
2023-12-05 10:45:32 -08:00
Krzysztof MochandFacebook GitHub Bot 852f2b1758 refactor: convert NetworkingModuleTest to kotlin (#41792)
Summary:
Migrated `NetworkingModuleTest` to kotlin (part of https://github.com/facebook/react-native/issues/38825)

## Changelog:
[Android] [CHANGED] - NetworkingModuleTest.java -> NetworkingModuleTest.kt

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

Test Plan: `./gradlew :packages:react-native:ReactAndroid:test`

Reviewed By: cortinico

Differential Revision: D51847402

Pulled By: rshest

fbshipit-source-id: 7a1938c575a7e5b22b6ff578e1f8d26b600f2c27
2023-12-05 09:01:08 -08:00