@react-native-documents/picker 10.1.2 → 10.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -254,12 +254,12 @@ class RNDocumentPickerModule(reactContext: ReactApplicationContext) :
|
|
|
254
254
|
reactApplicationContext.contentResolver.takePersistableUriPermission(uri, takeFlags)
|
|
255
255
|
val encodedBookmark =
|
|
256
256
|
Base64.encodeToString(uri.toString().toByteArray(Charsets.UTF_8), Base64.DEFAULT)
|
|
257
|
-
map.putString("
|
|
257
|
+
map.putString("bookmarkStatus", "success")
|
|
258
258
|
map.putString("bookmark", encodedBookmark)
|
|
259
259
|
} catch (e: Exception) {
|
|
260
260
|
val error =
|
|
261
261
|
e.localizedMessage ?: e.message ?: "Unknown error with takePersistableUriPermission"
|
|
262
|
-
map.putString("
|
|
262
|
+
map.putString("bookmarkStatus", "error")
|
|
263
263
|
map.putString("bookmarkError", error)
|
|
264
264
|
}
|
|
265
265
|
}
|
package/package.json
CHANGED