Commit Graph
32109 Commits
Author SHA1 Message Date
Phillip Pan c86f15af30 adjust ats settings in plist in pod install (#38086)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38086

Changelog: [Internal]

in this diff, we update the developer's Info.plists to have the correct ATS settings

introducing usage of files: https://www.rubydoc.info/github/CocoaPods/Xcodeproj/Xcodeproj/Project#files-instance_method, in order to retrieve the plists

Reviewed By: cipolleschi

Differential Revision: D47041590

fbshipit-source-id: 3797ab18cf4f25ee377c8155a8cc4bb61f2bdcf1
2023-06-28 09:11:58 -07:00
Jacob Parker 6eb0327113 Update README.md - iOS support is 13.4 (#38108)
Summary:
According to the podfiles, the minimum version is 13.4

## Changelog:

[General] [Fixed] - Updated docs to match iOS 13.4 minimum requirement.

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

Reviewed By: jacdebug

Differential Revision: D47093313

Pulled By: blakef

fbshipit-source-id: f59b1be3a6608082fd680e42396aff9a269c77a0
2023-06-28 09:01:44 -07:00
Sam Zhou 605db4427c Replace $Call in react-native (#38104)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38104

With the introduction of [new utility types](https://flow.org/en/docs/types/utilities/#toc-return-type) in Flow, these $Call are no longer needed

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D47078502

fbshipit-source-id: 7fc5f6aa08052b8de8e3f0a45ce2d7a24cb4e1b5
2023-06-28 07:18:53 -07:00
Intl Scheduler b01c7b4aa5 translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907908196726
Sandcastle Job Instance ID: 13510799864709483
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D47092881

fbshipit-source-id: 857554a3854e3d421a075f2d3d66adce6ee01c62
2023-06-28 06:16:58 -07:00
Alex Hunt bbcedd385b Restore base config merge in metro-config (#38092)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38092

Reverts https://github.com/facebook/react-native/pull/36777.

This is motivated by reducing user friction when the widespread assumption is for `react-native/metro-config` to export a complete Metro config, as with Expo/rnx-kit, and like previously understood uses of `metro-config`. See https://github.com/facebook/metro/issues/1010#issuecomment-1609215165 for further notes.

Fixes:
- https://github.com/facebook/metro/issues/1010
- https://github.com/facebook/react-native/issues/38069
- https://github.com/kristerkari/react-native-svg-transformer/issues/276

Note that we do not intend for `react-native/metro-config` to directly export `assetExts` etc — these can be accessed on the `resolver` property from the full config object.

Changelog: [General][Changed] `react-native/metro-config` now includes all base config values from `metro-config`

Reviewed By: robhogan

Differential Revision: D47055973

fbshipit-source-id: 5ad23cc9700397110de5c0e81c7d76299761ef0a
2023-06-28 04:29:45 -07:00
Dmitry Rykun a9618b33be Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode (#37865)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37865

In bridge mode UIManager's `constants` contain view configs for every registered native component and possibly some extra data.

On iOS there is no extra data, but on Android in addition to view configs there are `genericBubblingEventTypes` and `genericDirectEventTypes`. They are then [merged](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/ReactNative/getNativeComponentAttributes.js#L110-L116) into `bubblingEventTypes` and `directEventTypes` of every view config.

This diff replaces `getNativeViewConfig` binding with `getConstants` to make this behaviour possible in the bridgeless mode.

This diff also removes caching on native side with the expectation that `constants` will be cached on JS side just as [it is done](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/ReactNative/PaperUIManager.js#L24-L32) in bridge mode.

Changelog: [Internal] - Expose UIManager.getConstants instead of getNativeViewConfig to JS in bridgeless mode.

Reviewed By: RSNara

Differential Revision: D46698717

fbshipit-source-id: f9c96e220e49f6947766336ea545c01e38cb46ac
2023-06-28 04:17:07 -07:00
Sam Zhou c803a5bfa1 Enable mapped type (#38106)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38106

Changelog: [Internal]

Reviewed By: gkz

Differential Revision: D47081653

fbshipit-source-id: e739ac2c868aed39bc5168607074fc2ee69b49ae
2023-06-27 22:31:25 -07:00
Phillip Pan 2df19cec82 convert ProjectMock path type from string to Pathname (#38085)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38085

Changelog: [Internal]

the path instance attribute on `Project` is not actually supposed to be `String`, but `Pathname`: https://www.rubydoc.info/github/CocoaPods/Xcodeproj/Xcodeproj/Project#path-instance_method

i need this actually to be a pathname, so doing the refactor in this diff

Reviewed By: cipolleschi

Differential Revision: D47041355

fbshipit-source-id: 8b43c3a6f1cbc0f930749f380bd9d06ed44c0c37
2023-06-27 16:06:54 -07:00
Panagiotis Vekris b9cf5a1c49 Deploy 0.210.1 to xplat and set type_guards=true (#38098)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38098

Changelog: [Internal]

Reviewed By: SamChou19815

Differential Revision: D47065254

fbshipit-source-id: 77c4694d8e1b31ef4dbd60cbf30d8fa1267a2819
2023-06-27 15:33:10 -07:00
Xixi Liran 6fbbe26f5f Fix 'out-of-line definition of constexpr' build error for XCode 15 for React Native (#38079)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38079

This diff fixes the
```
out-of-line definition of constexpr static data member is redundant in C++17 and is deprecated [-Werror,-Wdeprecated]
```
error in `RAMBundleRegistry`

## Changelog:
[internal] - Fix Xcode 15 namespace build errors in `RAMBundleRegistry`.

Reviewed By: javache, cipolleschi

Differential Revision: D46988689

fbshipit-source-id: 5dc34b0f7d6fb266bc379b3639244bf69505aa88
2023-06-27 13:20:36 -07:00
Intl Scheduler 01e62d9498 translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907907694341
Sandcastle Job Instance ID: 22517999117287273
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D47069434

fbshipit-source-id: 89018bf327fbf77f911ad422d512be8c365e2410
2023-06-27 12:12:43 -07:00
Ken Tominaga 04d1de5896 Remove iOS 12 version check (#33460)
Summary:
I removed the code checking iOS 12 availability because the iOS minimum deployment target is now iOS 12.4 after these commits (https://github.com/facebook/react-native/commit/982ca30de079d7e80bd0b50365d58b9048fb628f, https://github.com/facebook/react-native/commit/c71e6efbcd2b95faee327d9763d321488120bc5e).

My previous pull requests regarding iOS 11
* [Remove iOS 11 version check by ken0nek · Pull Request https://github.com/facebook/react-native/issues/32151 · facebook/react-native](https://github.com/facebook/react-native/pull/32151)
* [Remove iOS 11 availability check by ken0nek · Pull Request https://github.com/facebook/react-native/issues/32488 · facebook/react-native](https://github.com/facebook/react-native/pull/32488)
* [Remove iOS 11 deprecation warnings around SafeArea by ken0nek · Pull Request https://github.com/facebook/react-native/issues/32851 · facebook/react-native](https://github.com/facebook/react-native/pull/32851)

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[iOS] [Changed] - Remove iOS 12 availability check

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

Reviewed By: NickGerleman

Differential Revision: D35021632

Pulled By: javache

fbshipit-source-id: bf85d44874a2c10cb345d33df7c9e4789312a7cd
2023-06-27 11:51:00 -07:00
Kryštof Woldřich a60d88053c Add @getsentry to React Native incubating partners list (#38091)
Summary:
Add getsentry to the React Native incubating partners list.

If you are interested in Sentry's work in the RN Core, see the ReactWG Post -> [Better Error Reporting for the New Architecture
](https://github.com/reactwg/react-native-new-architecture/discussions/122)
## 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] - Add getsentry to the React Native incubating partners list

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

Test Plan: None - Docs update

Reviewed By: cortinico, sammy-SC

Differential Revision: D47060764

Pulled By: blakef

fbshipit-source-id: 9a42a5d9ff9012eb4ec7ffb04fac850c750f3c65
2023-06-27 10:48:43 -07:00
Matt Blagden 48791bcd98 Fix grouping of console logs (#37835)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37835

Chrome Dev Tools doesn't correctly display grouped console logs (i.e. console output between a `console.group` and `console.groupEnd`) when timestamps are all zero.

Populate the timestamp field so grouping functions as expected.

Changelog: [General] [Fixed] Fix timestamps and grouped display of console messages within in a `console.group`

Reviewed By: fbmal7

Differential Revision: D46605659

fbshipit-source-id: c5821bfb4807c7f0ce28b7bb95ea08de29caf8a2
2023-06-27 10:44:42 -07:00
Jordan Brown 37460b06a4 Deploy 0.210.0 to xplat (#38097)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38097

Changelog: [Internal]

Reviewed By: mroch

Differential Revision: D47056034

fbshipit-source-id: 3a5f387722b637ad56a7871008bd9afecb0c52c8
2023-06-27 09:14:20 -07:00
trashcoder e35ca71bca Trashcoder/blob slice content type (#38078)
Summary:
I added the contentType parameter to Blob.slice like it's in the MDN Web docs.
This PR fixes https://github.com/facebook/react-native/issues/38058

When i slice a Blob for chunked uploads with react native i lost the content type, e.g. "image/jpeg", so the server doesn't know what kind of file he gets. In the docs of MDN the slice method was described with a third contentType parameter which was missing in Metas implementation.
## Changelog:
 [GENERAL] [ADDED] added a third parameter "contentType" to method slice of class Blob.

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

Test Plan:
I tested it with the unit-tests:
yarn run test Blob-test.js
yarn run v1.22.19
$ jest Blob-test.js
 PASS  packages/react-native/Libraries/Blob/__tests__/Blob-test.js
  Blob
    ✓ should create empty blob (5 ms)
    ✓ should create blob from other blobs and strings
    ✓ should slice a blob (1 ms)
    ✓ should slice a blob and sets a contentType
    ✓ should close a blob (4 ms)

My added unit test results "✓ should slice a blob and sets a contentType".

Reviewed By: hoxyq

Differential Revision: D47057162

Pulled By: blakef

fbshipit-source-id: 0931b0b828f81b9b90562ffd51d4111c81034ffc
2023-06-27 09:10:13 -07:00
Samuel Susla ebbd22c9d8 Add nullptr check to SharedFunction (#38075)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38075

changelog: [internal]

`SharedFunction<>` is created with nullptr for its internal `std::function`. If called after created with default constructor, it crashes app. It also does not have API to check if its internal function is not nullptr.

With image cancelation, there is a race between when native component calls `imageRequest.cancel()` and when cancelation function is set in `RCTImageManager`.
To fix this, this diff adds a nullptr check inside SharedFunction. So it is always safe to call.

Reviewed By: javache

Differential Revision: D47022957

fbshipit-source-id: 0a04a87cd1ffe6bf3ca2fded38f689f06cc92ca9
2023-06-27 09:01:29 -07:00
Riccardo Cipolleschi a702d0515f Warn users when a component is registered in Rendere and in the interop (#38089)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38089

This change add a warning if a component is registered in both the New Renderer and in the Interop layer.

This can help users migrating their components once the library has been migrated.

## Changelog:
[iOS][Added] - Add warning to help users migrate away from the interop layer.

Reviewed By: cortinico

Differential Revision: D47053556

fbshipit-source-id: cc2ba09db16aaa370947a77173b6ea6a0acfa519
2023-06-27 08:45:10 -07:00
Riccardo Cipolleschi a28881a3d7 Implement multiple manager lookup for the interop layer (#38093)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38093

In [this issue](https://github.com/facebook/react-native/issues/37905), the community detected a strict assumption in the interop layer for which, given a component `XXXView`, its ViewManager must be called `RCTXXXViewManager`.

That's not the case for some components, for example, `BVLinearGradient`, which View manager is `BVLinearGradientManager` and not `RCTBVLinearGradientManager`.

This diff adds a secondary lookup logic:
1. We look for the `RCTXXXViewManager`.
2. If not found, we look for `XXXViewManager`.

We will assess whether to generalize this logic once and for all or to expand other lookup cases on an example/failure basis as it's not a goal to have a 100% accurate interop layer. The Goal is to cover most use cases.

## Changelog:
[iOS][Added] - Allow to lookup for ViewManager without the RCT prefix in the Interop Layer

Reviewed By: sammy-SC

Differential Revision: D47055969

fbshipit-source-id: 1d31f3f4bc6f1f543edbd157ce04ad9daf23dbc6
2023-06-27 08:43:23 -07:00
Alex Hunt f8f59881a3 Add Metro repo link to new GitHub issue flow (#38072)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38072

Changelog: None

Reviewed By: cortinico

Differential Revision: D47024223

fbshipit-source-id: c29ae1fe7b17cd0182cb865aa398c870d86cf80d
2023-06-27 07:41:12 -07:00
Saad Najmi f7219ec02d Allow RCTBundleURLProvider to request an inline source map (#37878)
Summary:
See: http://blog.nparashuram.com/2019/10/debugging-react-native-ios-apps-with.html
When using direct debugging with JavaScriptCore, Safari Web Inspector doesn't pick up the source map over the network. Instead, as far as I can tell, it expects you to pass the source URL at the time you load your bundle:  https://developer.apple.com/documentation/javascriptcore/jscontext/1451384-evaluatescript?language=objc . This leads to a very sub-par developer experience debugging the JSbundle directly. It will however, pick up an inline source map. Therefore, let's add a way to have React Native tell metro to request an inline source map.

I did this by modifying `RCTBundleURLProvider` to have a new query parameter for `inlineSourceMap`, and set to true by default for JSC.

## Changelog:

[IOS] [ADDED] - Added support to inline the source map via RCTBundleURLProvider

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

Test Plan:
I can put a breakpoint in RNTester, via Safari Web Inspector, in human readable code :D

<img width="1728" alt="Screenshot 2023-06-14 at 4 09 03 AM" src="https://github.com/facebook/react-native/assets/6722175/055277fa-d887-4566-9dc6-3ea07a1a60b0">

Reviewed By: motiz88

Differential Revision: D46855418

Pulled By: huntie

fbshipit-source-id: 2134cdbcd0a3e81052d26ed75f83601ae4ddecfe
2023-06-27 07:26:16 -07:00
Intl Scheduler 3be3731f48 translation auto-update for i18n/fb4a.config.json on master
Summary:
Chronos Job Instance ID: 1125907907347476
Sandcastle Job Instance ID: 984101041
allow-large-files
ignore-conflict-markers
opt-out-review

Differential Revision: D47054390

fbshipit-source-id: df0ccc7937a4c6167670155d8ca20453ea6a6dc7
2023-06-27 04:25:35 -07:00
Moti Zilberman 2d6106055b Default to ignoring cached Metro bundle when offline (#38076)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/38076

Changelog: [Android][Breaking] Default to ignoring cached Metro bundle when offline

Currently, on Android, if we can't find a Metro server at startup, we try to run the last cached Metro bundle instead of the prebuilt bundle asset in the APK. This is inconsistent with the iOS behaviour, and breaks bundle features that rely on a runtime Metro connection to work correctly - such as HTTP asset loading and lazy bundling (which is the default as of D43600054).

Here we change the default for `ReactInstanceManager`'s `useFallbackBundle` property to `true`, which has the effect of ignoring the cached Metro bundle.

This is a **breaking change** because some developers' workflows might depend on performing a build while connected to a Metro instance, then using the app standalone without access to Metro. This may be exacerbated by the fact that the RN Gradle plugin [skips including a prebuilt bundle in debug builds](https://github.com/facebook/react-native/blob/eaafc260c14674bfbf7ce3a647404c70d546854f/packages/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt#L54). This means that, out of the box, debug builds of Android RN apps will only start if connected to Metro. (Contrast with iOS where a "fallback" bundle *is* included out of the box.)

We recommend that developers always connect to a Metro server in development, and perform a release build for standalone use. Alternatively, developers can use `ReactInstanceManager.setUseFallbackBundle(false)` to restore the old behaviour.

Reviewed By: javache, luluwu2032

Differential Revision: D47021957

fbshipit-source-id: 43ce8078ec95f5d65790b56f4d3dfa4f6a4e9023
2023-06-27 03:39:10 -07:00
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