Skip to content

Conversation

@cipolleschi
Copy link
Contributor

Summary:
We might have some libraries that goes through the interop layer that are using [RCTBridge currentBridge]. Although this is an API that we would like them not to use, that's the sad reality and if we don't want to force a migration on those libraries, we need to be backward compatible.

This diff sets the RCTBridgeProxy as the currentBridge in case the app is running in BridgelessMode. This should make Bridgeless backward compatible.

Changelog

[iOS][Fixed] - Make [RCTBridge currentBridge] work in bridgeless mode

Reviewed By: RSNara

Differential Revision: D53575361

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner labels Feb 9, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53575361

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Feb 9, 2024
…mpatibility. (facebook#42940)

Summary:

We might have some libraries that goes through the interop layer that are using [RCTBridge currentBridge]. Although this is an API that we would like them not to use, that's the sad reality and if we don't want to force a migration on those libraries, we need to be backward compatible.

This diff sets the `RCTBridgeProxy` as the `currentBridge` in case the app is running in BridgelessMode. This should make Bridgeless backward compatible.

## Changelog
[iOS][Fixed] - Make [RCTBridge currentBridge] work in bridgeless mode

Reviewed By: RSNara

Differential Revision: D53575361
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53575361

@analysis-bot
Copy link

analysis-bot commented Feb 9, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 17,238,145 -6
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 20,600,589 -1
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 7afc8b8
Branch: main

…mpatibility. (facebook#42940)

Summary:

We might have some libraries that goes through the interop layer that are using [RCTBridge currentBridge]. Although this is an API that we would like them not to use, that's the sad reality and if we don't want to force a migration on those libraries, we need to be backward compatible.

This diff sets the `RCTBridgeProxy` as the `currentBridge` in case the app is running in BridgelessMode. This should make Bridgeless backward compatible.

## Changelog
[iOS][Fixed] - Make [RCTBridge currentBridge] work in bridgeless mode

Reviewed By: RSNara

Differential Revision: D53575361
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D53575361

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 9, 2024
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in f6f4615.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants