@react-native-documents/picker 11.0.2 → 11.0.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.
@@ -103,11 +103,7 @@ class RNDocumentPickerModule(reactContext: ReactApplicationContext) :
103
103
  }
104
104
 
105
105
  override fun saveDocument(options: ReadableMap, promise: Promise) {
106
- val currentActivity = currentActivity
107
- if (currentActivity == null) {
108
- rejectWithNullActivity(promise)
109
- return
110
- }
106
+ val currentActivity = reactApplicationContext.currentActivity ?: return rejectWithNullActivity(promise)
111
107
  if (!promiseWrapper.trySetPromiseRejectingIncoming(promise, "saveDocuments")) {
112
108
  return
113
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-documents/picker",
3
- "version": "11.0.2",
3
+ "version": "11.0.3",
4
4
  "description": "A react native interface to access documents from dropbox, google drive, iCloud...",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",