react-native-img-cache icon indicating copy to clipboard operation
react-native-img-cache copied to clipboard

cannot read property 'DocumentDir' of undefined

Open dmh19900611 opened this issue 7 years ago • 8 comments

I met the problem after installing the img-cache and the fetch-blob. This problem was happened at compiling. Please help me. Thank you.

dmh19900611 avatar Nov 21 '17 08:11 dmh19900611

i have the same problem. Installed both and ran react-native link

thijssteel avatar Nov 25 '17 13:11 thijssteel

@thijssteel / @dmh19900611 do you find a solution guys ?

StanSarr avatar Nov 28 '17 15:11 StanSarr

not yet, haven't had the time

thijssteel avatar Nov 28 '17 15:11 thijssteel

i also have this,and i found the solution,you can see https://github.com/wkh237/react-native-fetch-blob/issues/299

MackJac avatar Dec 01 '17 02:12 MackJac

Apparently react-native link does not work well. You have to link RNFetchBlob.xcodeproj and libFetchBlob.a manually

arcesoj avatar Dec 19 '17 03:12 arcesoj

Just a reminder guys, when installing native modules always recompile the code by react-native run-ios or react-native run-android. Live reloading won't bring the native code to the app.

efstathiosntonas avatar Jan 26 '18 08:01 efstathiosntonas

I have resolved this problem, open your xcodeProject . General=>Linked Framework and Libraries and . re add libFetchBlob.a

lerpo avatar Apr 06 '18 03:04 lerpo

Hello i have solved this issue---- when you install the react-native-fetch-blob and link with iOS, it only provide limited lib on native side.

you can to open project from iOS in Xcode then remove the library of RNFetchBlob.xcodeproj from library folder and then again add by right click on library folder from node modules-->react-native-fetch-blob--->iOS folder --->add project RNFetchBlob.xcodeproj then all required file will be there and make sure add lib on build phases also libRNFetchBlob.a

it works for me.

Thanks

beenadevi1 avatar Aug 17 '18 06:08 beenadevi1