Skip to content

Commit

Permalink
Add resolve to fix pending callbacks error (#3496)
Browse files Browse the repository at this point in the history
  • Loading branch information
naftalibeder authored May 22, 2024
1 parent 1a6d096 commit 7806111
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/RNMBX/RNMBXCameraModule.mm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ - (void)withCamera:(nonnull NSNumber*)viewRef block:(void (^)(RNMBXCamera *))blo
reject:(RCTPromiseRejectBlock)reject)
{
[self withCamera:viewRef block:^(RNMBXCamera *view) {
[view updateCameraStop: stop];
[view updateCameraStop: stop];
resolve(@true);
} reject:reject methodName:@"someMethod"];
}

Expand Down

0 comments on commit 7806111

Please sign in to comment.