-
Notifications
You must be signed in to change notification settings - Fork 35
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
Support new architecture #100
Comments
Turns out |
cc @dominicstop |
Oh, got it, good to know. Well at least we know that will work then. |
Hi, thanks for tagging me, the issue got buried in my inbox, so I apologize for the very late reply... Yes, i agree that this is important, however It looks like I’ll need to do some refactors + run some experiments to support the new architecture — the one thing i’m worried about the most is that the workarounds/hacks i’ve used in the past won’t work anymore w/ fabric/JSI... regarding As for the bridge usage, i'm not sure yet if there's a corresponding replacement for all the API's i'm using... I’m currently working on making a component that wraps 2024-04-11-21-44-43.mp4The demo shows the ff. things:
i'm not sure yet, but i think the new architecture + expo API's will fix this... |
@dominicstop I haven't checked in full detail, but it seems like you're not using any APIs that the RN team has explicitly specified that the RCTBridgeProxy does not support. So, it may work "out of the box" as long as you switch to using this RCTBridgeProxy instead of the RCTBridge |
Hello @dominicstop As a heads up, RN 0.74 was officially released yesterday, which means it is likely that there will be an increase in the number of users actively experimenting with the new architecture, which will probably bring more attention to this issue. |
hello, thank you for the gentle warning/reminder; i made 2 new branches so i can start working on this (i.e. Updates
# New Architecture Support - Log + Status
|
Lifting #84 into a new issue.
Problem
New Architecture isn't working with this library.
Context
React Native 0.74 is coming with bridgeless mode and improvements for the new architecture. It appears that Expo is finally adopting it and they have a plan to test libraries for it.
How to test it
Here brent explains how to test New Architecture support with an Expo Module (it's easy): https://x.com/notbrent/status/1774931733194088465?s=20
TLDR: install
expo-build-properties
into the app you're testing, and add it to your app.json, setnewArchEnabled: true
.Show code
Here is a reproduction showing that this library does not currently work with the new architecture.
There's no crash, but the menu doesn't open.
Solution
Fabric deprecates
findNodeHandle()
, and it looks likereact-native-ios-context-menu
uses that function.I think the solution would be to remove
findNodeHandle
in favor of the component's ref.I'm not sure if other changes would be needed, but I'd assume that would fix it.
This also removes the bridge, so I think
self.bridge
would not be an option to use either.The text was updated successfully, but these errors were encountered: