RCTDeviceEventEmitter bridgeless alternative (Turbo Models) #213
DanielFrTB
started this conversation in
Libraries
Replies: 2 comments 2 replies
-
I see that pass a Callback is not valid since it used bridge ` public String addUnitToPageAndroid(String pageId, String mode, String placement, Callback callback) { package com.facebook.react.bridge; public interface Callback { |
Beta Was this translation helpful? Give feedback.
0 replies
-
Have a look at this example. It uses swift but shows how to send events from Native to JS for iOS |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
@cipolleschi
Hi there,
I'm trying to send events from Turbo Models to the JS side. I understand that in the new architecture, EventDispatcher (react-native-menu/menu@247e0ec) is necessary. However, it requires a viewTag, which isn't available in Turbo Modules.
Is there a bridgeless alternative to RCTDeviceEventEmitter for sending events from Turbo Models (iOS and Android) ?
Thanks
#144
Beta Was this translation helpful? Give feedback.
All reactions