Skip to content

Commit

Permalink
[#45] v2.25.2: Android: Corrects types in getPickFileLauncher()
Browse files Browse the repository at this point in the history
  • Loading branch information
birdofpreyru committed May 27, 2024
1 parent 937ed0a commit 0f2038b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ReactNativeFsModule internal constructor(context: ReactApplicationContext)
private fun getPickFileLauncher(): ActivityResultLauncher<Array<String>> {
if (pickFileLauncher == null) {
val registry = (currentActivity as ReactActivity).activityResultRegistry
pickFileLauncher = registry.register<Array<String>, Uri>(
pickFileLauncher = registry.register<Array<String>, Uri?>(
"RNFS_pickFile",
OpenDocument()
) { uri ->
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dr.pogodin/react-native-fs",
"version": "2.25.1",
"version": "2.25.2",
"description": "Native filesystem access for React Native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit 0f2038b

Please sign in to comment.