📌  相关文章
📜  无法解析模块 fs react native - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:32.042000             🧑  作者: Mango

代码示例1
npm install rn-nodeify

Then in package.json file, add the following line in "scripts" to specify which modules you want to include in your RN project. For example, I used fs, crypto and https, and the line goes

"postinstall": "node_modules/.bin/rn-nodeify --install crypto,fs,https --hack"