Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: try to enable bridgeless mode in the library #2708

Closed
wants to merge 9 commits into from

Conversation

WoLewicki
Copy link
Member

Description

PR adding code necessary for the bridgeless mode to be supported in the library. For now it's rather a PoC of what needs to be done for it.

Test plan

@WoLewicki WoLewicki marked this pull request as ready for review January 10, 2024 16:30
@@ -5,6 +5,8 @@ import {
DeviceEventEmitter,
EmitterSubscription,
} from 'react-native';
// @ts-ignore - its taken straight from RN
import { customDirectEventTypes } from 'react-native/Libraries/Renderer/shims/ReactNativeViewConfigRegistry';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for butting into your PR. From your talks with the Meta team, did they say this is the way to do it and there is no other way? I am facing a similar issue trying to send Fabric events in bridgeless mode. This looks very brittle. What happens to older versions where this doesn't exist? Or if they ever decide to change this import?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, I have as much information as you 😅 This was available on e.g. v0.67: https://github.com/facebook/react-native/blob/v0.67.0/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js and it is very old version already. And hopefully they won't change the import or maybe they'll fix this so we don't need to use it anymore.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch 😅. Alright, I'll probably be a bit more careful then 😂. Fingers crossed

@WoLewicki
Copy link
Member Author

Closing since #2766 has been merged.

@WoLewicki WoLewicki closed this Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants