Commit Graph

35497 Commits

Author SHA1 Message Date
Riccardo Cipolleschi 940776ff8c [LOCAL] Bump podfile.lock 2025-10-21 19:23:33 +01:00
React Native Bot 21e6dc1512 Release 0.79.7
#publish-packages-to-npm&0.79-stable
v0.79.7
2025-10-21 15:42:20 +00:00
Riccardo Cipolleschi 1d74ff5d85 Revert "Release 0.79.7"
This reverts commit 27f12ee54b.
2025-10-21 16:38:22 +01:00
Riccardo Cipolleschi 1459dd5549 [LOCAL] Fix CI for releases 2025-10-21 16:37:16 +01:00
React Native Bot 27f12ee54b Release 0.79.7
#publish-packages-to-npm&0.79-stable
2025-10-21 13:55:27 +00:00
Riccardo Cipolleschi c500e0a714 Downgrade CMake on Mac machines (#54210) 2025-10-21 12:04:27 +01:00
Riccardo Cipolleschi 296998d95c [LOCAL] Downgrade CMake for Mac machines, take3 2025-10-20 14:21:16 +01:00
Riccardo Cipolleschi db4cd9750d [LOCAL] Downgrade CMake for Mac machines, take2 2025-10-20 14:17:01 +01:00
Riccardo Cipolleschi e9f93b5429 [LOCAL] Downgrade CMake for Mac machines 2025-10-20 14:12:12 +01:00
Riccardo Cipolleschi f2e47d8dab [LOCAL] Apply patch on top of #49951 - see pick request 1009 2025-10-20 13:55:17 +01:00
Pieter De Baets 56ad8d9bfd Make missing parent view state in updateLayout a soft error (#49951)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49951

We previously fixed Differentiator generating an incorrect parentTag (https://github.com/facebook/react-native/pull/48055), but this can lead to crashes in Android UI due to reordering that happens in the Android mounting layer. While we have an experiment to disable this reordering (https://github.com/facebook/react-native/pull/46702) this currently has a negative performance impact which needs to be addressed.

As a mitigation, we can make the lookup of parentTag's ViewManager state nullable. We only require this to support `needsCustomLayoutForChildren`, which is not commonly used, and seems acceptable to drop in this scenario.

Changelog: [Android][Changed] Do not crash when parent view state can't be found

Reviewed By: NickGerleman

Differential Revision: D70966621

fbshipit-source-id: 33d0b6a90860788a4c9a8c6cea36c2c72c1392e1
2025-10-20 13:50:29 +01:00
Riccardo Cipolleschi 03214a5809 [LOCAL] Bump podfile.lock 2025-08-14 15:35:54 +01:00
React Native Bot f27463f43e Release 0.79.6
#publish-packages-to-npm&0.79-stable
v0.79.6
2025-08-14 11:33:35 +00:00
Nicola Corti 417c5c644a @DoNotStrip ReactModalHostView to prevent instacrash on release (#52195)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/52195

RNTester is currently instacrashing on release due to use minifying the `ReactModalHostView`.
In that class there is a static method that is accessed by JNI so we should annotated this class
as `DoNotStrip` as otherwise we won't be able to access it.

Changelog:
[Internal] [Changed] -

Reviewed By: cipolleschi

Differential Revision: D77148010

fbshipit-source-id: c5b2758fa2919bc1f5885433202a45b4c3f8ff99
2025-08-14 10:48:41 +01:00
Riccardo Cipolleschi a5ec1cd809 [LOCAL] fix duplicated symbols on on Modal when using dynamic frameworks 2025-08-13 15:20:56 +01:00
Riccardo Cipolleschi aa7d1c605a [LOCAL] Fix React-FabricComponents.podspec after Modal changes 2025-08-13 13:58:03 +01:00
Riccardo Cipolleschi 9a4e1df834 [LOCAL] Fix Android tests after changing Windows CI 2025-08-13 12:50:45 +01:00
Riccardo Cipolleschi a74d930c93 Add the ENTERPRISE_REPOSITORY env var to let user consume artifacts from their personal maven mirror 2025-08-13 11:57:54 +01:00
Nicola Corti 5a315f8d6b Fix Modal first frame being rendered on top-left corner (#51048)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51048

Fixes https://github.com/facebook/react-native/issues/50442
Closes https://github.com/facebook/react-native/pull/50704

Users reported that Modals on Android are first renderer anchored in 0,0.
That results in them being on the top left corner of the screen for some seconds.

This is happening because the native state of the Modal on Android as width/height set at 0,0 - which we then update in a subsequent callback.

I'm fixing this by making sure we render the Modal the first time with the right screen size - the status bar size

Changelog:
[Android] [Fixed] - Fix Modal first frame being rendered on top-left corner

Reviewed By: javache

Differential Revision: D73948178

fbshipit-source-id: 055c12aa62d70acc1e4c5a2a5c4ea0c5608e22c7
2025-08-13 11:05:41 +01:00
Nicola Corti df5ac988ce RNGP - Add support for exclusiveEnterpriseRepository (#52378)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/52378

This adds a Gradle property called `exclusiveEnterpriseRepository`
that users can set in their `android/gradle.properties` as such:

```diff
# Use this property to enable or disable the Hermes JS engine.
# If set to false, you will be using JSC instead.
hermesEnabled=true

+exclusiveEnterpriseRepository=https://my.internal.proxy.net/
```

This will remove all the existing Maven repositories and only use the internal mirror they have.

Changelog:
[Android] [Added] - RNGP - Add support for `exclusiveEnterpriseRepository` to specify an internal Maven mirror.

Reviewed By: mdvacca

Differential Revision: D77667573

fbshipit-source-id: 835004d2ae7aa4e250b6f7a88a41918b573f5bd5
2025-08-13 11:01:34 +01:00
Vladimir Iliev 43bc43e5e8 Fix emitting event from turbo module crashes on 32bit android (#51695)
Summary:
After testing the latest RC and nighly builds, crash appeared when emitting events from turbo modules on 32bit Android devices. The crash is always reproducible only on 32bit devices on signed production builds. Fore more details and the crash log, check the [related issue](https://github.com/facebook/react-native/issues/51628#issue-3094045077).

From what I found, the variadic functions like CallVoidMethod are unsafe on 32bit due to not type checking the passed arguments at compile time. As far as I understand the 64bit cpus and ABIs are more forgiving with alignment and calling conventions. On 32bit the ABIs are strict as arguments are passed on the stack and if there is type/size/alignment issue it reads the wrong memory, which causes the SIGEGV crashes.

[ANDROID] [FIXED]  - emitting event from turbo module crashes on 32bit android

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

Test Plan:
1. Pull the [reproduction demo](https://github.com/vladimirivanoviliev/rn079eventcrash), install the dependencies (v `0.80` is on PR)
2. Run codegen on android
3. Build signed apk. To create it you will need to create new demo key-store.
4. To install the build apk in 32bit mode you can use `adb -s YOURDEVICE install --abi armeabi-v7a android/app/release/app-release.apk`
5. Run the app, create key, save it. Than update the key and save it again. The app crashes when try to emit event from the turbo module.
6. Patch the related `JavaTurboModule.cpp` file with the changes from this PR and enable build from source.
7. Rebuild and reinstall the apk and test again - the issue is now fixed

I have tested the app on android using the `rn-tester` demo app, everything works as expected. I also patched our production app and tested more complex scenarios and they works as expected. I have run the tests and linter and they passed.

One thing that I didn't able to setup and run is the iOS `rn-tester` app, due to Hermes engine error `Command PhaseScriptExecution failed with a nonzero exit code`. I haven't found any information how to fix it. I have followed [this guide](https://github.com/facebook/react-native/blob/main/packages/rn-tester/README.md) and installed node modules using yarn and started the `yarn prepare-ios`. I also haven't found any information with what node version and ruby version the react native package is build on CI so I use the same versions locally. If you provide me with updated instructions for those I can contribute by updating the related guides and including `.npmrc`, `.ruby-version` files.

Reviewed By: cortinico

Differential Revision: D75782377

Pulled By: javache

fbshipit-source-id: b94998be6dd51e90ad4137b1d2e38a6850bc3cb2
2025-08-13 11:01:00 +01:00
Riccardo Cipolleschi d97f6f6767 Fix Windows CI (#52666)
Summary:
As per [this issue](https://github.com/actions/runner-images/issues/12416), Windows machine doesn't have access to D: drive anymore

## Changelog:
[Internal] -

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

Test Plan: GHA

Reviewed By: huntie

Differential Revision: D78484060

Pulled By: cipolleschi

fbshipit-source-id: 36d844f9d7d69f1d74a154b019307cc1e269ad66
2025-08-13 10:50:40 +01:00
Rob Hogan db600b2e9e [LOCAL] Backout #46896 - Attempt to fix #50274 (#52515) 2025-08-13 10:50:18 +01:00
Tommy Nguyen a8539190fe fix(codegen): fix missing dependencies (#52884)
Summary:
`react-native/codegen` uses `babel/parser` and `babel/core` but does not declare dependency on them. Depending on how packages are hoisted (and especially in pnpm setups), this causes crashes during codegen.

Resolves https://github.com/facebook/react-native/issues/52883

## Changelog:

[GENERAL] [FIXED] - Add missing Babel dependencies

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

Test Plan: See https://github.com/facebook/react-native/issues/52883

Reviewed By: cortinico, christophpurrer

Differential Revision: D79103092

Pulled By: robhogan

fbshipit-source-id: ecaf690f994393a652ea7f0d4f30bbabeb23a434
2025-08-13 09:41:42 +00:00
Fabrizio Cucci 01c1253c7e Update Podfile.lock
Changelog: [Internal]
2025-07-02 10:33:02 +01:00
React Native Bot b063fd04dc Release 0.79.5
#publish-packages-to-npm&0.79-stable
v0.79.5
2025-07-01 17:30:07 +00:00
Fabrizio Cucci b725f97504 Revert "Release 0.79.5"
This reverts commit 426dd97d21.
2025-07-01 18:26:54 +01:00
React Native Bot 426dd97d21 Release 0.79.5
#publish-packages-to-npm&0.79-stable
2025-07-01 14:09:28 +00:00
buschco bf07da1a66 publish index.js.flow instead of index.flow.js (#52179)
Summary:
I think in https://github.com/facebook/react-native/commit/50667eceb1be4771375d6a3cc2f4e42d4d8aad3a the file name was mixed up. Instead of `index.flow.js` it should be `index.js.flow` (see https://github.com/facebook/react-native/blob/main/packages/react-native/index.js.flow)

Should fix https://github.com/facebook/react-native/issues/51885

## Changelog:

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

[General][Added] Publish top-level Flow types for `react-native`

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

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

Test Plan:
Steps to reproduce

1. Setup a react-native project with flow (or clone https://github.com/buschco/react-native-flow + `cd ReproducerApp && npm i`)
2. `import {Alert} from 'react-native'` -> `Alert` has type `any`
3. add `index.js.flow` File (https://github.com/facebook/react-native/blob/v0.79.3/packages/react-native/index.js.flow) to `node_modules/react-native/index.js.flow` -> `Alert` no longer `any`

Reviewed By: christophpurrer

Differential Revision: D77052871

Pulled By: robhogan

fbshipit-source-id: 32b0052a9d96486aff66a1f6e4577ff62cbcd97e
2025-07-01 12:23:55 +01:00
Fabrizio Cucci af31ad9790 Update Podfile.lock
Changelog: [Internal]
2025-06-18 10:56:12 +01:00
React Native Bot 58edb0af93 Release 0.79.4
#publish-packages-to-npm&0.79-stable
v0.79.4
2025-06-17 17:10:17 +00:00
Nicola Corti cd422dc2b6 Revert "[0.79] Close Sonatype repository during build_android (#52086)" (#52089)
* Revert "[0.79] Close Sonatype repository during build_android (#52086)"

This reverts commit 6e0b1bedc5.

* [0.79] Close Sonatype repository during build_npm_package
2025-06-17 18:04:07 +01:00
Fabrizio Cucci 425662439c Revert "Release 0.79.4"
This reverts commit 1a6cb4b45b.
2025-06-17 17:47:42 +01:00
React Native Bot 1a6cb4b45b Release 0.79.4
#publish-packages-to-npm&0.79-stable
2025-06-17 15:05:47 +00:00
Riccardo Cipolleschi 4581ce7863 Bump windows to latests as GH will remove windows-2019 EOM (#51798)
Summary:
As per title, GH is [removing windows-2019](https://github.com/facebook/react-native/actions/runs/15421451006/job/43403215354) at the end of the month. We need to migrate away from them.

## Changelog:
[Internal] - Bump windows runners

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

Test Plan: GHA

Reviewed By: cortinico

Differential Revision: D75946994

Pulled By: cipolleschi

fbshipit-source-id: 972b60300c918c0eae0403ed4149347a4ffa8bd0
2025-06-17 16:02:51 +01:00
Nicola Corti 6e0b1bedc5 [0.79] Close Sonatype repository during build_android (#52086) 2025-06-17 14:36:08 +01:00
Fabrizio Cucci c955e6c538 Revert "Release 0.79.4"
This reverts commit ecc6270247.
2025-06-17 14:34:04 +01:00
React Native Bot ecc6270247 Release 0.79.4
#publish-packages-to-npm&0.79-stable
2025-06-17 10:21:12 +00:00
Riccardo Cipolleschi 3acfe01382 [RN][Codegen] Backports fix: exclusion of selectively disabled libraries from codegen generation (#52040) 2025-06-16 12:41:28 +01:00
Joe Vilches 0ebaaed281 Fix broken focus behavior for TextInput in older Android versions (< 9) (#51964) 2025-06-16 11:05:26 +01:00
Nicola Corti e386b01a8f Update Nightly URL for newly published versions on central.sonatype.com (#52004)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/52004

This is necessary because the snapshots are now going to be published on a different repository:
central.sonatype.com.

Changelog:
[Internal] [Changed] -

Reviewed By: cipolleschi

Differential Revision: D76596802

fbshipit-source-id: 424fb1134e41502d53b76209fba325c895c79ba8
2025-06-16 10:43:37 +01:00
Nicola Corti 129622d9b9 Move React Native publishing URLs to Central Portal (#51693)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51693

This moves React Native to use the Central Portal URLs rather than the legacy OSSRH ones.
See https://github.com/gradle-nexus/publish-plugin for more context.

Changelog:
[Internal] [Changed] -

Reviewed By: cipolleschi

Differential Revision: D75673984

fbshipit-source-id: 1de6746809eed72f232eac0c3fb4d809c2046620
2025-06-16 10:43:37 +01:00
Ritesh Shukla 235ac2cca0 Fix Dimensions not changing when orientation changes (#51978)
This fixes the bug where Dimensions (width and height) are not changing when the orientation changes.
2025-06-16 10:28:42 +01:00
Aswin Andro ea6abb690e Publish top-level Flow types for react-native (#51908)
Summary:
FIXED Add index.js.flow to npm package files for Flow support

Currently, the distributed npm package for react-native does not include the index.js.flow file, which causes all exports to be typed as any when using Flow. This commit adds index.js.flow to the "files" array in package.json, ensuring Flow users receive proper type definitions out of the box. This addresses issues where type checking with Flow fails in React Native projects.

## Changelog:

[General][Added] Publish top-level Flow types for `react-native`

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

Reviewed By: huntie, necolas

Differential Revision: D76292301

Pulled By: robhogan

fbshipit-source-id: e56360d3f35af30ef160470181349aac1812e7c1
2025-06-16 09:21:15 +00:00
Nick Lefever 2cd074d77a Disabling updateRuntimeShadowNodeReferencesOnCommit by default. (#52013)
Co-authored-by: Nick <lefever@meta.com>
2025-06-16 10:18:51 +01:00
Nicola Corti 81ed5e1ef0 Revert "[0.79] Fix broken focus behavior on TextInput in older Android versions"
This reverts commit 1e0bbb80ce.
2025-06-10 16:09:58 +01:00
Nicola Corti 69349ebdd5 Revert "remove unused fn"
This reverts commit da6115c6d7.
2025-06-10 16:09:47 +01:00
Joe Vilches da6115c6d7 remove unused fn 2025-06-10 10:20:08 -04:00
Joe Vilches 1e0bbb80ce [0.79] Fix broken focus behavior on TextInput in older Android versions 2025-06-09 20:40:46 -04:00
Riccardo Cipolleschi 2095834380 [LOCAL] Bump Podfile.lock 2025-06-04 18:56:25 +01:00