Skip to content

Commit

Permalink
Fix Interop code for having unsync ViewManager between ModuleRegistry…
Browse files Browse the repository at this point in the history
… and BridgeProxy (facebook#48069)

Summary:
Pull Request resolved: facebook#48069

Changelog [Internal]:
Fix Interop code for having unsync ViewManager between ModuleRegistry and BridgeProxy

Differential Revision: D66137400
  • Loading branch information
realsoelynn authored and facebook-github-bot committed Dec 3, 2024
1 parent d19f5f9 commit 6c7dc0e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/react-native/React/Views/RCTComponentData.mm
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ - (RCTViewManager *)manager
if (!_manager && [self isBridgeMode]) {
_manager = [_bridge moduleForClass:_managerClass];
} else if (!_manager && !_bridgelessViewManager) {
_bridgelessViewManager = [_managerClass new];
_bridgelessViewManager = [_bridge moduleForClass:_managerClass];
_bridgelessViewManager.bridge = _bridge;
[[NSNotificationCenter defaultCenter] postNotificationName:RCTDidInitializeModuleNotification
object:nil
userInfo:@{@"module" : _bridgelessViewManager}];
}
return _manager ? _manager : _bridgelessViewManager;
}
Expand Down

0 comments on commit 6c7dc0e

Please sign in to comment.