Commit Graph

38536 Commits

Author SHA1 Message Date
Intl Scheduler 71f715ab17 translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907907240476
Sandcastle Job Instance ID: 4503600608757187
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D47044946

fbshipit-source-id: 945a811a8782d53e903adee4d58f6b701136f490
2023-06-26 19:53:20 -07:00
Sam Zhou d0bbf7bd13 Upgrade hermes-* packages in xplat and arvr to version 0.13.0 (#38083)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38083

Upgrade hermes parser packages to the latest released versions.

Changelog is here: https://github.com/facebook/hermes/blob/main/tools/hermes-parser/js/CHANGELOG.md
Main differences are improved parser support for new Flow features.

Changelog: [Internal]

Reviewed By: pieterv

Differential Revision: D47038363

fbshipit-source-id: 6b264e6a92f17d8107e035d657f4d8c6f02dceb7
2023-06-26 19:31:04 -07:00
David Vacca 55786f26c6 Reduce visibility of BridgelessReactContext (#38009)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38009

This diff reduces dependency of BridgelessReactContext to package only, this way we are removing BridgelessReactContext out of the Stable API, and app developers won't be able to access it directly.

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D46410796

fbshipit-source-id: e887faecdc62b3109bdc7c9616821338e7b66136
2023-06-26 17:52:22 -07:00
David Vacca 1334594704 Refactor start of ReactHost in ReactHostTest (#37986)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37986

Refactor start of ReactHost in ReactHostTest from previous diffs comments

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D46815048

fbshipit-source-id: ff68890413e91804b5b4997d637d81be29b8bff4
2023-06-26 16:58:14 -07:00
David Vacca add10419b6 Test lifecycle evetns in ReactHost (#37985)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37985

Test lifecycle evetns in ReactHost

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D46814334

fbshipit-source-id: 888574c3099ddceec4f7f0aaaf14b883b1a4dc0b
2023-06-26 16:58:14 -07:00
David Vacca 015e7cbd93 Create method to test reload of ReactHost (#37981)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37981

This diff introduces a the test ReactHost.testReload() to verify that reloading of react host works as expected

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D46813814

fbshipit-source-id: 59e23e2f296c81b7ca3decb81e1f53b5871bbff4
2023-06-26 16:58:14 -07:00
David Vacca de786cddbc Create test that verifies ReactHost.destroy() works as expected (#37983)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37983

Create test ReactHostTest.testDestroy() that verifies ReactHost.destroy() works as expected

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D46813611

fbshipit-source-id: 65432dae1b69412af3dec23265f57f73d49cca68
2023-06-26 16:58:14 -07:00
David Vacca 93ec2206e3 Rename testPreload() -> testStart() (#37984)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37984

I'm renaming testPreload -> testStart to make tests consistents with ReactHost

changelog: [internal] internal

Reviewed By: fkgozali

Differential Revision: D46812084

fbshipit-source-id: e53a3ffecba4520015f3fcb078cc9f94ceceeb6e
2023-06-26 16:58:14 -07:00
David Vacca 2c14a0cf41 Fix ReactHostTest.testPreload() (#37980)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37980

In this diff I'm fixing the ReactHostTest.testPreload test that was broken due to concurrency issues between a task submited in bolts that interacted with the UIThread and RobolectricTestRunner blocking on the UI Thread.

I created an utility method to wait for completion of the task

see: https://robolectric.org/blog/2019/06/04/paused-looper/

changelog: [internal] internal

Reviewed By: fkgozali

Differential Revision: D46812085

fbshipit-source-id: 1a8f9de8ef22071e708280720d0384b1562dd56b
2023-06-26 16:58:14 -07:00
David Vacca 9c646ec79a Re-enable ReactHostTest (#37982)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37982

ReactHostTest was disabled as part of D44729814, I'm re-enabling it as they pass locally

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D46806278

fbshipit-source-id: 7fa530b4ea5bcacb72253218eded6f9a96e4cdf9
2023-06-26 16:58:14 -07:00
Samuel Susla 247da6ef7f Invalidate NSTextStorage on AttributedString change (#38070)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38070

changelog:
[iOS][fix]: Correctly invalidate NSTextStorage when non layout related props change

Fixes: https://github.com/facebook/react-native/issues/37944

Problem:
NSTextStorage was not invalidated if non-layout props were changed. So for example 'color' dynamically changed, it wouldn't get invalidated and font of incorrect color would be rendered on screen.

Reviewed By: javache

Differential Revision: D47019250

fbshipit-source-id: bd5d8e6ee4493791dedbafc64a8b8df48a5681e4
2023-06-26 13:49:47 -07:00
Tommy Nguyen e1fd4a8fcd ci: use pod install --project-directory when testing template (#37996)
Summary:
Exercise `pod install --project-directory=ios` when building the generated iOS project to make sure we don't regress in the future.

See also https://github.com/facebook/react-native/issues/37992, https://github.com/facebook/react-native/issues/35754, https://github.com/facebook/react-native/issues/34215, https://github.com/facebook/react-native/issues/33909…

## Changelog:

[INTERNAL] [ADDED] - Exercise `pod install --project-directory=ios` when testing the iOS template

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

Test Plan: CI should pass.

Reviewed By: dmytrorykun

Differential Revision: D46972815

Pulled By: cipolleschi

fbshipit-source-id: 69617b09ac599eba3dde3ddddcf08db95bfc4da3
2023-06-26 10:11:14 -07:00
Riccardo Cipolleschi eaafc260c1 Restore envinfo for test_windows (#38062)
Summary:
We had to disable the envinfo command on test_windows to get the CI back to green.

The reason why it started failing is because they released 7.9.0 which does not seem to have the executable on Windows, so `npx` fails to find what to run.

This fix restore the command in a way that it should display the envinfo using an older version of the package. I also added a task to come back to this periodically.

## Changelog:

[Internal] - Restore envinfo on windows

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

Test Plan: - CircleCI: test_windows stays green

Reviewed By: cortinico

Differential Revision: D47016995

Pulled By: cipolleschi

fbshipit-source-id: 368367caed7ea49d7419475580a39f9406c54757
2023-06-26 05:44:12 -07:00
Pieter De Baets 772c9eb9f2 Remove unused mapException methods (#38042)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38042

Follow-up cleanup from D34379950, now that fbjni has been upgraded. Also synced the internal and external build flags.

Changelog: [Internal]

Reviewed By: cortinico

Differential Revision: D46975010

fbshipit-source-id: 7d2fd215b68bcebbf259e23923fb3fec1ca09f8a
2023-06-26 04:55:14 -07:00
Nicola Corti e6502d85bf Remove unnecessary @JvmDefault (#38063)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38063

I'm cleaning up the ReactApplication code a bit to use a property with custom setter
Moreover I'm also removing the JvmDefault annotation as that is unnecessary as we use
the `-Xjvm-default=all`, plus is deprecated and will be removed soon by Kotlin.

Changelog:
[Internal] [Changed] - Remove unnecessary JvmDefault

Reviewed By: javache

Differential Revision: D47016727

fbshipit-source-id: 8ab1325c6a9d1db2f8290fb89b766e3d93674b0d
2023-06-26 04:39:02 -07:00
Matthias Giger 3273d38d3b Remove testID from TextStyle types (#38053)
Summary:
`testID` which is a valid prop for `<Text>` is also found in the types for `TextStyle`. This pull request removes said property from the styles.

## Changelog:

General Fixed - Remove testID from TextStyle types

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

Test Plan:
```tsx
const styles = StyleSheet.create({
  view: {
    testID: 'should-error-in-typescript-but-does-not'
  }
})
```

`TextStyle` is used to type the `StyleSheet` along with `ViewStyle` and `ImageStyle` which do not contain `testID`.

```tsx
const MyText = <Text testID="already-typed-fine">Hello</Text>
```

`testID` is used to identify components with the mentioned prop. This works for `Text` and will continue to do so, `TextProps` has `testID` added specifically. When using `getByTestId` in jest adding testID to the style already has no effect.

When adding `testID` to a style a warning will already be shown in development: Warning: Failed prop type: Invalid props.style key `testID` supplied to `Text`.

Reviewed By: javache

Differential Revision: D47006787

Pulled By: NickGerleman

fbshipit-source-id: 6993579ee9c173677594f8f3aea499ac8d8ab232
2023-06-26 04:12:38 -07:00
Lulu Wu c5a1f70087 Get rid of internal macros (#38048)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38048

As title

Changelog: [Internal]

Reviewed By: cipolleschi

Differential Revision: D46847633

fbshipit-source-id: 113580ab2bdbafa2dcea6192360ca169b4aa1a98
2023-06-26 03:45:56 -07:00
Lulu Wu 016e77a033 Enable JSC (#38007)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38007

Enable JSC for Bridgeless and wire it up with RNTester Android

Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D46527692

fbshipit-source-id: 68f36a6db5573a70156864904bb428a4f789d4f5
2023-06-26 03:45:56 -07:00
Intl Scheduler 85666e4081 translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907906946598
Sandcastle Job Instance ID: 18014399490860764
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D47017543

fbshipit-source-id: 2989bf74c2d497b1c6e47fe04a13044e68cf0179
2023-06-26 03:41:56 -07:00
Intl Scheduler 26ef0d55be translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907906774786
Sandcastle Job Instance ID: 13510799862654777
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D47010828

fbshipit-source-id: 5b3125dff4785c6d0d13e28087b29ebaf6d17e02
2023-06-25 19:10:54 -07:00
Intl Scheduler 945ab0deca translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907906626416
Sandcastle Job Instance ID: 18014399490624584
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D47007688

fbshipit-source-id: c271ae134beeaf8033cc93e193b4023552358b20
2023-06-25 11:50:32 -07:00
David Vacca 890565000e Fix RNTester build in CI (#38057)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38057

Fix RNTester build in CI

changelog: [internal] internal

Reviewed By: fkgozali

Differential Revision: D47006806

fbshipit-source-id: 762d2ef82af368acbfb4012879c3851f844c84ec
2023-06-25 11:05:09 -07:00
David Vacca 68fe124fdc Convert ReactApplication to kotlin (#37987)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37987

Convert ReactApplication to kotlin

bypass-github-export-checks

changelog: [internal] internal

Reviewed By: cortinico

Differential Revision: D46772472

fbshipit-source-id: 70c6b9fad3e4e365434b59f184753ca23cf5ed56
2023-06-25 00:29:55 -07:00
Intl Scheduler ca9d74a377 translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907906271032
Sandcastle Job Instance ID: 36028797999638817
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D47002631

fbshipit-source-id: e481ef017174cff7102ff5c192adf0dc5f0b618b
2023-06-24 21:14:08 -07:00
Andrew Gable 897c2ffd5c Add @Expensify to React Native incubating partners list (#37497)
Summary:
Adding Expensify to the React Native incubating partners list

## 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] - Adding Expensify to the React Native incubating partners list

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

Test Plan: N/A - Just documentation update

Reviewed By: TheSavior

Differential Revision: D47002327

Pulled By: rickhanlonii

fbshipit-source-id: 39adf1e519e32aaf911baacb78a5549109d4c0c0
2023-06-24 20:50:45 -07:00
Riccardo Cipolleschi 2aedda974b Fix test windows disabling npx envinfo (#38050)
Summary:
`test_windows` are failing in CI. This change should fix them for the time being while we investigate further
## Changelog:
[internal] - Fix test_windows removing `npx envinfo`

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

Test Plan: circleci should be green

Reviewed By: mdvacca

Differential Revision: D46999794

Pulled By: cipolleschi

fbshipit-source-id: c6e4020ec530d95a5ce6c3b5e70f596b12d23f7e
2023-06-24 12:07:54 -07:00
Intl Scheduler f87ab6275b translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907906218720
Sandcastle Job Instance ID: 31525198372512735
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D47000159

fbshipit-source-id: 4ba45af4d7dbefc641eee0795cddd39dff246f22
2023-06-24 12:02:02 -07:00
Lulu Wu f1d8214990 Enable Bridgeless
Summary: Set RuntimeConfig for RNTester

Reviewed By: cortinico

Differential Revision: D46527569

fbshipit-source-id: f0fe0a169723390585e9eeb672cb799953f57e85
2023-06-24 09:37:30 -07:00
Lulu Wu 0876170681 Enable Bridgeless (#38002)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38002

Enable Bridgeless in RNTester Android by adding the initialization logic

Changelog: [Internal]

Reviewed By: fkgozali

Differential Revision: D46375362

fbshipit-source-id: 4c62cba5920d4c90d83a43afed4c4f91e52ec469
2023-06-24 08:06:55 -07:00
Intl Scheduler 72fab3c39a translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907905665807
Sandcastle Job Instance ID: 31525198372178606
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D46995091

fbshipit-source-id: 1a0ba488be5f497fa5d72e90c1fed782798fb812
2023-06-23 21:05:53 -07:00
Intl Scheduler 53529a110f translation auto-update for i18n/messenger.config.json on master
Summary:
Chronos Job Instance ID: 1125907905665807
Sandcastle Job Instance ID: 31525198372178606
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D46995080

fbshipit-source-id: a6b2d2a3b08971325c3832ff8a63034b2563f77a
2023-06-23 21:05:53 -07:00
Pieter De Baets 330639f740 Fix Runnables used with enableEarlyScheduledMountItemExecution being unguarded (#38038)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38038

Changelog: [Internal]

Also un-deprecating the constructors of other Guarded runnables, as an extension of D46685374

Reviewed By: rshest

Differential Revision: D46971220

fbshipit-source-id: cf982f7efe9bcd1ddb7285aa35d836b7c57c4d24
2023-06-23 11:33:09 -07:00
Ricky 9e1c3d266a Add partner application process to ECOSYSTEM.md (#37689)
Summary:
## Overview

This PR updates the ECOSYSTEM.md with more information for how to apply to be a partner, and includes an update to the joining process including a 3 month incubation period.

It also emphasizes that being a partner is a commitment of resources to improve React Native, and not a status symbol.

Changelog: internal

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

Reviewed By: lunaleaps, cortinico

Differential Revision: D46941950

Pulled By: rickhanlonii

fbshipit-source-id: 254b0927d5e57a5169c52ea7ac5eaff1d064ab2b
2023-06-23 07:21:45 -07:00
Intl Scheduler 2f1f313123 translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907905296658
Sandcastle Job Instance ID: 27021598742167931
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D46971035

fbshipit-source-id: 3a46bc8d7c84dda531122fac886b7a72df4be0fa
2023-06-23 05:54:37 -07:00
Kryštof Woldřich 6c729acd12 Use new getCanonicalName and getMessage methods exposed by fbjni (#37879)
Summary:
When a new version of `fbjni` is released, we can simplify `getName` and `getMessage` calls on throwables.

## Changelog:

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

Pick one each for the category and type tags:

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

[ANDROID] [CHANGED] - Use new `getCanonicalName` and `getMessage` methods exposed by `fbjni`

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

Test Plan: https://github.com/facebookincubator/fbjni/pull/78

Reviewed By: cortinico

Differential Revision: D46966561

Pulled By: javache

fbshipit-source-id: f30720a30146cf8fe5125336435a1512063c253d
2023-06-23 04:49:15 -07:00
Ruslan Shestopalyuk c34aabbb90 Fix copypasta function documentation in ImageLoaderModule (#38029)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38029

# Changelog:
[Internal] -

A trivial fix - I was looking into some deeper issues with `Image.prefetch`, noticed that code docs were copypasted and incorrect.

Reviewed By: cipolleschi

Differential Revision: D46959350

fbshipit-source-id: 4e4196f9399d91402d9b206c20f2bbd0d1d0eb2a
2023-06-23 04:24:59 -07:00
Tommy Nguyen eb5f23c07a fix(ios): fix pod install --project-directory=ios failing (#37992)
Summary:
![image](https://user-images.githubusercontent.com/4123478/217618490-4f99e408-1a07-4acf-a05c-e8837562a931.png)

`pod install --project-directory=ios` currently fails when new arch is enabled: https://github.com/react-native-async-storage/async-storage/pull/910

- Patch for 0.71: https://github.com/facebook/react-native/pull/37993
- Patch for 0.72: https://github.com/facebook/react-native/pull/37994

## Changelog:

[IOS] [FIXED] - Fix `pod install --project-directory=...` when New Arch is enabled

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

Test Plan:
```
git clone https://github.com/react-native-async-storage/async-storage.git
cd async-storage
gh pr checkout 910
yarn
RCT_NEW_ARCH_ENABLED=1 pod install --project-directory=example/ios
```

Reviewed By: cortinico

Differential Revision: D46966225

Pulled By: cipolleschi

fbshipit-source-id: 00b4650189175c09c9ec928f85d075890ba4c7c1
2023-06-23 03:27:05 -07:00
Rubén Norte a94bbfbe0e Enable IntersectionObserver in Catalyst and RNTester (#37863)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37863

This creates 2 examples for IntersectionObserver in RNTester:
* The first example is just a copy of the example provided by MDN in the documentation page for `IntersectionObserver` (https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API). This example is useful to show how React Native behaves the same way with the same code.
* The second example is a "stress test" for the API: a screen with 500 simultaneous node being observed at the same time with different observers. As we compute the intersections after scroll (after "mounting" the state update with the updated scroll position) in the main thread, this highlights a possible impact on scroll performance.

IntersectionObserver isn't yet enabled by default, so no need to add a changelog entry about this. We'll add one when the API becomes generally available.

Changelog: [Internal]

Reviewed By: rshest

Differential Revision: D45736845

fbshipit-source-id: 40b6bce39f90e04653504b1033a4edfaa65e93ca
2023-06-23 02:56:04 -07:00
Rubén Norte 387bd70e49 Basic implementation of IntersectionObserver (#37853)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37853

This adds a basic implementation of `IntersectionObserver`. This will not be available yet and is only compatible with the new React Native architecture. This shouldn't show up in the changelog until we're ready to enable this in some form.

Changelog: [Internal]

## Context

This implements a basic version of the `IntersectionObserver` API (as defined on the Web) for React Native.

The motivation for this is supporting several use cases that are not possible in React Native at the moment, most importantly:
* Tracking paint times for elements in the screen.
* Tracking precise visibility of elements in the screen outside the context of a `VirtualizedList` (with an even better precision and control).

## Implementation details

This API is implemented as a native module that registers a mount hook in Fabric. Whenever there's a mount (an update to the UI of the host platform) we check for intersections in the shadow tree. The shadow tree contains information about the representation of the UI in a given time (including scroll position), which we use as source of truth for this in a cross-platform fashion. We rely on the fact that scroll position is updated regularly in the shadow tree to provide an up-to-date view into the UI.

**This implementation is completely cross-platform.** The only platform-specific part is the report of mounts in mount hooks from the host platform to Fabric.

This API uses a centralized entity in JS and native to handle registration of observers and dispatch of notifications. The dispatch the notifications for all observers in the same callback so we can easily change the sequencing of events easily (for example, we can change this to use microtasks when they're available in RN).

## Known limitations

* Timestamps are generally accurate for paint (as we report mounts right after they happen in the host platform), but **state updates (like scroll) are reported with a slight delay**.
  * In regular rendering, we first update the shadow tree and then mount it (paint), which is generally precise. In state updates, the UI is updated first and then the shadow tree is updated. In this case, we're not correctly reporting the timestamp of the scroll event (which we should be using) but the timestamp of when the update is processed. We'll fix this in a following diff.
* The IntersectionObserver API has a concept of initial notification. This is a mechanism to report the initial state of an observed target. If we start observing a target when it's added to the tree but before it's painted, this initial notification is supposed to provide initial paint time (which is important for performance measurements). This implements some logic to handle that correctly (we check if there is a pending transaction) but it's currently unreliable:
  * React Native does not currently block paint on microtasks or layout effects, so setting up an observer in these stages could have race conditions with actual mount. If mount happens before the observation is started, the initial notification doesn't report initial time but observation time. If mount happens after, the initial notification should be fine (except in some cases on Android, see the next point).
  * On Android, we have a push model to send mutations to the host platform, we means we consume transactions after commit, not immediately before mount. This breaks this logic and we need to figure out a solution in a following diff.

----

Reviewed By: sammy-SC, rshest

Differential Revision: D45278720

fbshipit-source-id: de350388c6325128f1cf73328779a9d3577a258a
2023-06-23 02:56:04 -07:00
Nicola Corti c54092fe3b Update NativeAnimatedNodeTraversalTest to be more idiomatic (#37970)
Summary:
Follow up to:
- https://github.com/facebook/react-native/pull/37960

## Changelog:

[INTERNAL] - Update NativeAnimatedNodeTraversalTest to be more idiomatic

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

Test Plan: Will run on CI

Reviewed By: javache, cipolleschi

Differential Revision: D46853581

Pulled By: cortinico

fbshipit-source-id: 73776493163413b045482344b7b1be0635f5aa25
2023-06-23 02:31:39 -07:00
Intl Scheduler 7e934947d7 translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907905026809
Sandcastle Job Instance ID: 9007200231768659
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D46959288

fbshipit-source-id: 6d3e6c9a40a99847babddf1264a17cf332eb51eb
2023-06-22 18:08:55 -07:00
Intl Scheduler 5f18d7f993 translation auto-update for i18n/anna.config.json on master
Summary:
Chronos Job Instance ID: 1125907905026809
Sandcastle Job Instance ID: 9007200231768659
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D46959269

fbshipit-source-id: 8cba4ed298805285ed0ece857eec08c9d7a704a3
2023-06-22 18:08:55 -07:00
Intl Scheduler 90563967d6 translation auto-update for i18n/pages-manager.config.json on master
Summary:
Chronos Job Instance ID: 1125907905026809
Sandcastle Job Instance ID: 9007200231768659
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D46959285

fbshipit-source-id: b71267bcd6b1ca8e2ebaaf3fc42391b4bf8406a3
2023-06-22 18:08:55 -07:00
Intl Scheduler 79e9e56939 translation auto-update for i18n/instagram.config.json on master
Summary:
Chronos Job Instance ID: 1125907905026809
Sandcastle Job Instance ID: 9007200231768659
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D46959284

fbshipit-source-id: a22f30e57eef3708a265992df1dde6ff0985759a
2023-06-22 18:08:55 -07:00
Intl Scheduler 1f8eb1de58 translation auto-update for i18n/messenger.config.json on master
Summary:
Chronos Job Instance ID: 1125907905026809
Sandcastle Job Instance ID: 9007200231768659
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D46959274

fbshipit-source-id: a98311c9026999808fe4fb365595a71959d45615
2023-06-22 18:08:55 -07:00
g4rb4g3 79e8474b14 fix: int cast can cause endless loop if value < 1 (#38016)
Summary:
I faced an issue that on Android the whole UI would freeze when using minimumFontScale. This is caused by an int cast that turns the while loop into an endless loop.
Also the docs are not correct since they say it is an iOS only prop.
https://reactnative.dev/docs/text#minimumfontscale-ios

## Changelog:

[ANDROID] [FIXED] - UI freezing when using minimumFontScale

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

Test Plan:
Run this sample app with and without this fix. https://github.com/g4rb4g3/androidMinimumFontScaleBug
Without the ui will freeze when hitting the + button, with the fix a Text component will be shown and no freeze will happen. 🙂

Reviewed By: cipolleschi

Differential Revision: D46931439

Pulled By: NickGerleman

fbshipit-source-id: 6985443b3424539b40bc0081fe742ab59105a2ae
2023-06-22 17:19:40 -07:00
David Vacca 95847fcd7e Initialize "rninstance" at ReactInstance class loading time (#38026)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38026

In this diff I'm moving the initialization of "rninstance" so as soon as the class is loaded

The goal is to ensure so is loaded earlier and prevent issues like T156403678

changelog: [internal] internal

Reviewed By: luluwu2032

Differential Revision: D46945464

fbshipit-source-id: f4d68574030ca3bda5d55fe3a9c1630a4879f3ab
2023-06-22 16:38:28 -07:00
Lulu Wu 0a9284a242 Fix UnsupportedOperationException
Summary:
This would cause an UnsupportedOperationException in java and thus result in a white screen.

The root cause is that ```mDelegate.getReactPackages()``` returns a non-resizable list so we wrap it to a resizable list in this diff.

Created from CodeHub with https://fburl.com/edit-in-codehub

Reviewed By: cortinico, adanoff

Differential Revision: D46943066

fbshipit-source-id: 27fcb78610aea0c8cb98d6ead4d0e1603a767e6e
2023-06-22 15:44:03 -07:00
Intl Scheduler 0201e51bbe translation auto-update for i18n/instagram.config.json on master
Summary:
Chronos Job Instance ID: 1125907904820442
Sandcastle Job Instance ID: 13510799860416949
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D46940637

fbshipit-source-id: 4395bfa1b14062447ad2cf7533bafd9686ef6822
2023-06-22 09:53:49 -07:00
Intl Scheduler 43602b8185 translation auto-update for i18n/anna.config.json on master
Summary:
Chronos Job Instance ID: 1125907904820442
Sandcastle Job Instance ID: 13510799860416949
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D46940647

fbshipit-source-id: dac7416563336629fcfe0a0f41c8f2b27b518d48
2023-06-22 09:53:49 -07:00