-
-
Notifications
You must be signed in to change notification settings - Fork 527
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: remove currentBridge occurences #2120
Conversation
RNSScreenViewEvent *event = [[RNSScreenViewEvent alloc] initWithEventName:@"onTransitionProgress" | ||
reactTag:[NSNumber numberWithInt:self.tag] | ||
progress:progress | ||
closing:closing | ||
goingForward:goingForward]; | ||
[[RCTBridge currentBridge].eventDispatcher notifyObserversOfEvent:event]; | ||
NSDictionary *userInfo = [NSDictionary dictionaryWithObjectsAndKeys:event, @"event", nil]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now it only work on bridgeless mode so we prolly need to find some other way to make it work.
We have to wait for facebook/react-native#44474 to be released to properly handle all of this. |
Is this PR still relevant? Let me know whether I should attempt reviewing this PR |
Nope, we should close it. I'll have to check what is the state of those things and if they are properly handled right now. |
Description
PR removing occurences of
currentBridge
in the code since we should not use it (see software-mansion/react-native-reanimated#5497 (comment)). Now inRNSScreen.mm
we use the same hack asScrollView
(see the comment in the code).RNSModule
now has thesetBridge
method so it gets the bridge on new arch in bridgeless too. As forRNSScreenStackHeaderSubview
, I removed the call and changed it tonil
since it did not work either way on new arch.Changes
Test code and steps to reproduce
Checklist