react-native-img-cache
react-native-img-cache copied to clipboard
cannot read property 'DocumentDir' of undefined
I met the problem after installing the img-cache and the fetch-blob. This problem was happened at compiling. Please help me. Thank you.
i have the same problem. Installed both and ran react-native link
@thijssteel / @dmh19900611 do you find a solution guys ?
not yet, haven't had the time
i also have this,and i found the solution,you can see https://github.com/wkh237/react-native-fetch-blob/issues/299
Apparently react-native link
does not work well. You have to link RNFetchBlob.xcodeproj
and libFetchBlob.a
manually
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.
I have resolved this problem, open your xcodeProject . General=>Linked Framework and Libraries and . re add libFetchBlob.a
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