Skip to content
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

Prevent iOS host object installation from getting the wrong bridge #2146

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions ios/RNSModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,7 @@ - (void)installHostObject
because depending on the selected architecture, only one method will be called.
For `Paper`, it will be constantsToExport, and for `Fabric`, it will be getTurboModule.
*/
RCTBridge *bridge = [RCTBridge currentBridge];
RCTCxxBridge *cxxBridge = (RCTCxxBridge *)bridge;
RCTCxxBridge *cxxBridge = (RCTCxxBridge *)self.bridge;
if (cxxBridge != nil) {
auto jsiRuntime = (jsi::Runtime *)cxxBridge.runtime;
if (jsiRuntime != nil) {
Expand Down
Loading