Skip to content

Commit

Permalink
fix(ios): picker cancelled error code to match JS expected value (#761)
Browse files Browse the repository at this point in the history
* Fix iOS picker cancelled error code to match JS expected value

* Create kind-trains-smoke.md

---------

Co-authored-by: Vojtech Novak <[email protected]>
  • Loading branch information
daveallie and vonovak authored Jan 23, 2025
1 parent 3a957cf commit 786223c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/kind-trains-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-native-documents/picker": patch
---

Fix iOS picker cancelled error code to match JS expected value
2 changes: 1 addition & 1 deletion packages/document-picker/ios/swift/PromiseWrapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class PromiseWrapper {
private var promiseReject: RNDPPromiseRejectBlock?
private var nameOfCallInProgress: String?

private let E_DOCUMENT_PICKER_CANCELED = "E_DOCUMENT_PICKER_CANCELED"
private let E_DOCUMENT_PICKER_CANCELED = "OPERATION_CANCELED"
private let ASYNC_OP_IN_PROGRESS = "ASYNC_OP_IN_PROGRESS"

func setPromiseRejectingPrevious(_ resolve: @escaping RNDPPromiseResolveBlock,
Expand Down

0 comments on commit 786223c

Please sign in to comment.