You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello Doctor, there is a compilation error. Please update the library at your earliest convenience.
e: ***/node_modules/@dr.pogodin/react-native-fs/android/src/main/java/com/drpogodin/reactnativefs/ReactNativeFsModule.kt:56:21
Type mismatch: inferred type is Uri? but Uri was expected
need modify to
private fun getPickFileLauncher(): ActivityResultLauncher<Array<String>> {
if (pickFileLauncher == null) {
val registry = (currentActivity as ReactActivity).activityResultRegistry
pickFileLauncher = registry.register<Array<String>, Uri?>(
"RNFS_pickFile",
OpenDocument()
) { uri ->
val res = Arguments.createArray()
if (uri != null) res.pushString(uri.toString())
pendingPickFilePromises.pop().resolve(res)
}
}
return pickFileLauncher!!
}
The text was updated successfully, but these errors were encountered:
agp = "8.4.1"
kotlin = "1.9.24"
"@dr.pogodin/react-native-fs": "2.25.0",
Hello Doctor, there is a compilation error. Please update the library at your earliest convenience.
need modify to
The text was updated successfully, but these errors were encountered: