Skip to content

Commit

Permalink
v2.24.5: [#37] Android: Fixes pickFile() function
Browse files Browse the repository at this point in the history
  • Loading branch information
birdofpreyru committed Apr 14, 2024
1 parent 19d20e9 commit da2b49a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,10 @@ class ReactNativeFsModule internal constructor(context: ReactApplicationContext)
@ReactMethod
override fun pickFile(options: ReadableMap, promise: Promise) {
val mimeTypesArray = options.getArray("mimeTypes")
val mimeTypes = emptyArray<String>()
var mimeTypes = emptyArray<String>()
if (mimeTypesArray != null) {
for (i in 0 until mimeTypesArray.size()) {
mimeTypes[i] = mimeTypesArray.getString(i)
mimeTypes += mimeTypesArray.getString(i)
}
}

Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"build:ios": "cd ios && xcodebuild -workspace ReactNativeFsExample.xcworkspace -scheme ReactNativeFsExample -configuration Debug -sdk iphonesimulator CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO"
},
"dependencies": {
"@dr.pogodin/react-native-static-server": "^0.12.0",
"@dr.pogodin/react-native-static-server": "^0.13.0",
"@types/lodash": "^4.17.0",
"lodash": "^4.17.21",
"react": "^18.2.0",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dr.pogodin/react-native-fs",
"version": "2.24.4",
"version": "2.24.5",
"description": "Native filesystem access for react-native",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down Expand Up @@ -51,7 +51,7 @@
"devDependencies": {
"@react-native/eslint-config": "^0.73.2",
"@types/jest": "^29.5.12",
"@types/react": "^18.2.75",
"@types/react": "^18.2.78",
"del-cli": "^5.1.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ __metadata:
"@babel/core": ^7.24.4
"@babel/preset-env": ^7.24.4
"@babel/runtime": ^7.24.4
"@dr.pogodin/react-native-static-server": ^0.12.0
"@dr.pogodin/react-native-static-server": ^0.13.0
"@react-native/babel-preset": ^0.73.21
"@react-native/metro-config": ^0.73.5
"@react-native/typescript-config": ^0.73.1
Expand All @@ -1843,7 +1843,7 @@ __metadata:
dependencies:
"@react-native/eslint-config": ^0.73.2
"@types/jest": ^29.5.12
"@types/react": ^18.2.75
"@types/react": ^18.2.78
buffer: ^6.0.3
del-cli: ^5.1.0
eslint: ^8.57.0
Expand All @@ -1865,17 +1865,17 @@ __metadata:
languageName: unknown
linkType: soft

"@dr.pogodin/react-native-static-server@npm:^0.12.0":
version: 0.12.0
resolution: "@dr.pogodin/react-native-static-server@npm:0.12.0"
"@dr.pogodin/react-native-static-server@npm:^0.13.0":
version: 0.13.0
resolution: "@dr.pogodin/react-native-static-server@npm:0.13.0"
dependencies:
"@dr.pogodin/js-utils": ^0.0.9
peerDependencies:
"@dr.pogodin/react-native-fs": ">= 2.22.0"
react: 18
react-native: 0.73
react-native-windows: 0.73
checksum: dd704297ee901705b71637f415191b73ebc41fe9c7caa20347f91fdb441320e7d7e11514e367fa6979e5575a2c610ce0752b50d3dd7a5069e5234eafddd053aa
checksum: ce37db320531b1bcbea6e71d6f0b83fb6cc1725cbd81ed53c6d67e5dea0865a980c33ad07801c816183ada5ab82008442a0acb89e1febc609e7891f83c221e11
languageName: node
linkType: hard

Expand Down

0 comments on commit da2b49a

Please sign in to comment.