joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.8k stars 767 forks source link

RN Fetch Blob gives warning of linking on react-native > 0.60 which should be removed from react-native.config.js #833

Open Hassan-Naeem-code opened 1 year ago

Hassan-Naeem-code commented 1 year ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch rn-fetch-blob@0.12.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/rn-fetch-blob/react-native.config.js b/node_modules/rn-fetch-blob/react-native.config.js
deleted file mode 100644
index 03c61b6..0000000
--- a/node_modules/rn-fetch-blob/react-native.config.js
+++ /dev/null
@@ -1,7 +0,0 @@
-module.exports = {
-  dependency: {
-    hooks: {
-      prelink: 'node ./node_modules/rn-fetch-blob/scripts/prelink.js',
-    },
-  },
-};

This issue body was partially generated by patch-package.

AnithaFrontm commented 2 weeks ago

Hi @Hassan-Naeem-code how you added patch file for rn-fetch-blob.. can you share code for that?