@onekeyfe/react-native-cloud-fs 3.0.18 → 3.0.20

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.
@@ -266,7 +266,7 @@ class RNCloudFsModule(private val reactContext: ReactApplicationContext) :
266
266
  } else {
267
267
  true
268
268
  }
269
- val actualMimeType = if (mimeType == null) guessMimeType(uriOrPath) else null
269
+ val actualMimeType = mimeType ?: guessMimeType(uriOrPath)
270
270
 
271
271
  try {
272
272
  helper.saveFile(uriOrPath, destinationPath, actualMimeType, useDocumentsFolder)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-cloud-fs",
3
- "version": "3.0.18",
3
+ "version": "3.0.20",
4
4
  "description": "react-native-cloud-fs TurboModule for OneKey",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",