Closed curtismenmuir closed 5 years ago
unfortunately fs.existsSync
(along with many other synchronous methods) is not supported at the moment. RN introduced the ability to make calls over the bridge synchronously only a few versions ago. You can add support to react-native-level-fs
if you want :)
@mvayngrib Thanks for getting back to me! :)
Thanks for the heads up, I will have a look into react-native-level-fs. Closing this issue!
I am trying to get Winston (Version 3.X) logger to work on React-Native using RN-Nodeify (what a package, thank you! <3) and I am stuck at an issue with fs.existsSync() when trying to output the logs to a file.
Postinstall script used:
"postinstall": "rn-nodeify --install util,buffer,os,fs,path,zlib,http,https,_stream_transform,assert,events,url,stream,process,tls,global,crypto,vm --hack"
Index.js - from line 1 (app entry point):
Is there any way to get round this issue with RN-Nodeify?