Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

could not resolve module fs react native

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"
 
PREVIOUS NEXT
Tagged: #resolve #module #fs #react #native
ADD COMMENT
Topic
Name
2+7 =