File tree 5 files changed +615
-607
lines changed
5 files changed +615
-607
lines changed Original file line number Diff line number Diff line change 1
1
PODS:
2
2
- boost (1.83.0)
3
3
- DoubleConversion (1.1.6)
4
- - dr-pogodin-react-native-fs (2.25.0 ):
4
+ - dr-pogodin-react-native-fs (2.25.1 ):
5
5
- DoubleConversion
6
6
- glog
7
7
- hermes-engine
22
22
- ReactCommon/turbomodule/bridging
23
23
- ReactCommon/turbomodule/core
24
24
- Yoga
25
- - dr-pogodin-react-native-static-server (0.14 .0):
25
+ - dr-pogodin-react-native-static-server (0.15 .0):
26
26
- DoubleConversion
27
27
- glog
28
28
- hermes-engine
@@ -1391,8 +1391,8 @@ EXTERNAL SOURCES:
1391
1391
SPEC CHECKSUMS:
1392
1392
boost: d3f49c53809116a5d38da093a8aa78bf551aed09
1393
1393
DoubleConversion: 76ab83afb40bddeeee456813d9c04f67f78771b5
1394
- dr-pogodin-react-native-fs: 4a4d7328b931bb3fac7b5414f1ba1c97d53655f0
1395
- dr-pogodin-react-native-static-server: 01df542fcda40860b1aacdea7e042adbcdf57bce
1394
+ dr-pogodin-react-native-fs: 1b8692d91b0af367bcae2acd834c48b609c6fc36
1395
+ dr-pogodin-react-native-static-server: d93f2556a2ac75007d784bb90d088385360df8d4
1396
1396
FBLazyVector: 898d14d17bf19e2435cafd9ea2a1033efe445709
1397
1397
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
1398
1398
glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
Original file line number Diff line number Diff line change 13
13
"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"
14
14
},
15
15
"dependencies" : {
16
- "@dr.pogodin/react-native-static-server" : " ^0.14 .0" ,
17
- "@types/lodash" : " ^4.17.1 " ,
16
+ "@dr.pogodin/react-native-static-server" : " ^0.15 .0" ,
17
+ "@types/lodash" : " ^4.17.4 " ,
18
18
"lodash" : " ^4.17.21" ,
19
19
"react" : " 18.3.1" ,
20
20
"react-native" : " 0.74.1" ,
21
- "react-native-windows" : " 0.74.2 "
21
+ "react-native-windows" : " 0.74.5 "
22
22
},
23
23
"devDependencies" : {
24
- "@babel/core" : " ^7.24.5 " ,
25
- "@babel/preset-env" : " ^7.24.5 " ,
26
- "@babel/runtime" : " ^7.24.5 " ,
24
+ "@babel/core" : " ^7.24.6 " ,
25
+ "@babel/preset-env" : " ^7.24.6 " ,
26
+ "@babel/runtime" : " ^7.24.6 " ,
27
27
"@react-native/babel-preset" : " 0.74.83" ,
28
28
"@react-native/metro-config" : " 0.74.83" ,
29
29
"@react-native/typescript-config" : " 0.74.83" ,
Original file line number Diff line number Diff line change @@ -1156,15 +1156,24 @@ - (void)documentPickerWasCancelled:(UIDocumentPickerViewController *)picker
1156
1156
resolve:(RCTPromiseResolveBlock)resolve
1157
1157
reject:(RCTPromiseRejectBlock)reject
1158
1158
) {
1159
+ // NOTE: We must copy options into a local variable, so that (especially with
1160
+ // the new, bridgeless architecture) it is correctly detained by the async
1161
+ // block below, not crushing the app.
1162
+ // See: https://github.com/birdofpreyru/react-native-fs/issues/44
1163
+ # ifdef RCT_NEW_ARCH_ENABLED
1164
+ JS::NativeReactNativeFs::PickFileOptionsT o = options;
1165
+ # else
1166
+ NSDictionary * o = options;
1167
+ # endif
1159
1168
dispatch_async (dispatch_get_main_queue (), ^() {
1160
1169
@try {
1161
1170
UIDocumentPickerViewController *picker;
1162
1171
1163
1172
# ifdef RCT_NEW_ARCH_ENABLED
1164
- facebook::react::LazyVector<NSString *> mimeTypes = options .mimeTypes ();
1173
+ facebook::react::LazyVector<NSString *> mimeTypes = o .mimeTypes ();
1165
1174
int numMimeTypes = mimeTypes.size ();
1166
1175
# else
1167
- NSArray <NSString *>* mimeTypes = options [@" mimeTypes" ];
1176
+ NSArray <NSString *>* mimeTypes = o [@" mimeTypes" ];
1168
1177
int numMimeTypes = mimeTypes.count ;
1169
1178
# endif
1170
1179
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @dr.pogodin/react-native-fs" ,
3
- "version" : " 2.25.0 " ,
3
+ "version" : " 2.25.1 " ,
4
4
"description" : " Native filesystem access for React Native" ,
5
5
"main" : " lib/commonjs/index" ,
6
6
"module" : " lib/module/index" ,
51
51
"devDependencies" : {
52
52
"@react-native/eslint-config" : " ^0.74.83" ,
53
53
"@types/jest" : " ^29.5.12" ,
54
- "@types/react" : " ^18.3.1 " ,
54
+ "@types/react" : " ^18.3.3 " ,
55
55
"del-cli" : " ^5.1.0" ,
56
56
"eslint" : " ^8.57.0" ,
57
57
"eslint-config-prettier" : " ^9.1.0" ,
62
62
"react" : " 18.3.1" ,
63
63
"react-native" : " 0.74.1" ,
64
64
"react-native-builder-bob" : " ^0.23.2" ,
65
- "react-native-windows" : " 0.74.2 " ,
65
+ "react-native-windows" : " 0.74.5 " ,
66
66
"typescript" : " ^5.4.5"
67
67
},
68
68
"resolutions" : {
You can’t perform that action at this time.
0 commit comments