Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove rn-fetch-blob #578

Merged
merged 4 commits into from
Oct 26, 2021
Merged

Remove rn-fetch-blob #578

merged 4 commits into from
Oct 26, 2021

Conversation

Serra19
Copy link
Contributor

@Serra19 Serra19 commented Jun 15, 2021

As @imranMnts said on #575, rn-fetch-blob is unmaintained since september 2020 joltup/rn-fetch-blob#666 so I'm making this PR to change that library and use react-native-blob-util as @imranMnts suggested.

react-native-blob-util supports windows, so I think the try/catch on index.js:25 is not needed anymore, and the library can be imported normally.

@Serra19 Serra19 changed the title Remove rn fetch blob Remove rn-fetch-blob Jun 15, 2021
@RonRadtke
Copy link

@Serra19
I'm glad you want to migrate to my lib.
I recently published 0.13.8 with a few bugfixes. You might want to just bump the version to 0.13.8 directly :)

@ddikodroid
Copy link

have you tested it and not crashing?

@Serra19
Copy link
Contributor Author

Serra19 commented Jun 22, 2021

Yes, in fact, we're using this PR on our production app (android and ios) and it's working fine.

@lukutism
Copy link

lukutism commented Jul 2, 2021

Looking forward for this too. :)

@myklosbotond
Copy link

Shouldn't the readme also be updated to indicate the new package to install instead of rn-fetch-blob?

Also, any ideas why peerDependencies entry was removed in 119c292? IMO it would be best to add this library as a peer dependency if react-native-pdf cannot run without it. Especially since the try/catch was removed.

@csantos-r
Copy link

Shouldn't the readme also be updated to indicate the new package to install instead of rn-fetch-blob?

Also, any ideas why peerDependencies entry was removed in 119c292? IMO it would be best to add this library as a peer dependency if react-native-pdf cannot run without it. Especially since the try/catch was removed.

Did you solve this problem with react-native-pdf?

@keremoge
Copy link
Contributor

keremoge commented Aug 3, 2021

Shouldn't the readme also be updated to indicate the new package to install instead of rn-fetch-blob?

Also, any ideas why peerDependencies entry was removed in 119c292? IMO it would be best to add this library as a peer dependency if react-native-pdf cannot run without it. Especially since the try/catch was removed.

Yes, readme file also should be updated @Serra19

@Serra19
Copy link
Contributor Author

Serra19 commented Sep 2, 2021

I've updated the readme file and the react-native-blob-util version for the example.

PD: Sorry for my late response! 🙏

@phillipkey
Copy link

There is a bit of urgency to this fix as rn-fetch-blob is using HostNameVerifier in such a way that the Google Play Store is blocking apps that are using it. Any news on when this fix will be released?

@ddikodroid
Copy link

There is a bit of urgency to this fix as rn-fetch-blob is using HostNameVerifier in such a way that the Google Play Store is blocking apps that are using it. Any news on when this fix will be released?

You can use this PR in package.json

@SimonIT
Copy link

SimonIT commented Sep 17, 2021

@wonday Would you mind merging this PR?

@frenberg
Copy link

@wonday Would you mind merging this PR?

And while at it, bump major version and release on npm. I know its possible to specify git targets in package.json, but a new release is overdue.

@jaltin
Copy link

jaltin commented Sep 28, 2021

@wonday Would you mind merging this PR?

We are also keen that this PR gets accepted. Any chance it can be looked at @wonday?

@imknight
Copy link

imknight commented Oct 9, 2021

There is a bit of urgency to this fix as rn-fetch-blob is using HostNameVerifier in such a way that the Google Play Store is blocking apps that are using it. Any news on when this fix will be released?

You can use this PR in package.json

mind to share how you did this? really need to get this working, i have something like this but still not working

    "react-native-blob-util": "^0.13.16",
    "react-native-pdf": "Serra19/react-native-pdf#remove-rn-fetch-blob",

@Drzaln
Copy link

Drzaln commented Oct 9, 2021

@imknight try this command npm install wonday/react-native-pdf#578/head

@keremoge
Copy link
Contributor

There is a bit of urgency to this fix as rn-fetch-blob is using HostNameVerifier in such a way that the Google Play Store is blocking apps that are using it. Any news on when this fix will be released?

You can use this PR in package.json

mind to share how you did this? really need to get this working, i have something like this but still not working

    "react-native-blob-util": "^0.13.16",
    "react-native-pdf": "Serra19/react-native-pdf#remove-rn-fetch-blob",

you can try this:

"react-native-pdf": "github:Serra19/react-native-pdf#remove-rn-fetch-blob",

@wonday wonday merged commit a8dc690 into wonday:master Oct 26, 2021
@wonday
Copy link
Owner

wonday commented Oct 26, 2021

Tanks all :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet