Skip to content

Commit

Permalink
💫 Update: RNIModalViewModule.setModalVisibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed May 12, 2023
1 parent b8c7bf2 commit 0c8788a
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,12 @@ class RNIModalViewModule: RCTEventEmitter {
error.invokePromiseRejectBlock(reject)

} catch {
let error = RNIModalError(code: .unknownError);
error.invokePromiseRejectBlock(reject);
let errorWrapper = RNIModalError(
code: .unknownError,
error: error
);

errorWrapper.invokePromiseRejectBlock(reject);
};
};
};
Expand Down

0 comments on commit 0c8788a

Please sign in to comment.