Skip to content

Commit

Permalink
fix: remove usage of bridge uimanager in one more place (#2768)
Browse files Browse the repository at this point in the history
## Description

Quick fix for one more place where viewRegistry_DEPRECATED should be used.
  • Loading branch information
WoLewicki authored Feb 20, 2024
1 parent b1808d1 commit 7cdb409
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions apple/RNGestureHandlerModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,11 @@ - (void)setBridge:(RCTBridge *)bridge
NSArray<GestureHandlerOperation> *operations = _operations;
_operations = [NSMutableArray new];

[self.bridge.uiManager
addUIBlock:^(__unused RCTUIManager *manager, __unused NSDictionary<NSNumber *, UIView *> *viewRegistry) {
for (GestureHandlerOperation operation in operations) {
operation(self->_manager);
}
}];
[self.viewRegistry_DEPRECATED addUIBlock:^(RCTViewRegistry *viewRegistry) {
for (GestureHandlerOperation operation in operations) {
operation(self->_manager);
}
}];
#endif // RCT_NEW_ARCH_ENABLED
}

Expand Down

0 comments on commit 7cdb409

Please sign in to comment.