react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

Update flow to also use "react-native-blob-util" instead of "rn-fetch-blob"

Open sanderbrugge opened this issue 4 years ago • 4 comments

What react-native version are you using? 0.65.0

What react-native-pdf version are you using? 6.4.0

What platform does your issue occur on? (android/ios/both) / (flow)

Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue index.js.flow is still relying on rn-fetch-blob on v6.4.0, this causes an error when typechecking with flow.
  2. Interesting logs Cannot resolve module rn-fetch-blob.

Join a screenshot or video of the problem on the simulator or device?

screenshot
image

Show us the code you are using?

sanderbrugge avatar Dec 27 '21 12:12 sanderbrugge

I have a similar issue.

I use rn-fetch-blob somewhere else in my app and never had react-native-blob-util added. It used to work fine but now im getting this error

image

If i add eact-native-blob-util i get duplicate symbols and circular dependencies. Is there any fix to this to just use one of the libraries? Or should i use an older version?

nachoperez714 avatar Dec 29 '21 18:12 nachoperez714

@nachoperez714

I use rn-fetch-blob somewhere else in my app and never had react-native-blob-util added.

react-native-blob-util is a maintained for of rn-fetch-blob, should be a drop in replacement. You can only have one though. So if you want to upgrade react-native-pdf, you'll need to remove rn-fetch-blob and replace it with blob-util in your codebase.

sanderbrugge avatar Dec 30 '21 08:12 sanderbrugge

Created a PR to fix it #678

AbdelhalimAhmed avatar Aug 16 '22 07:08 AbdelhalimAhmed

use https://github.com/locht/react-native-pdf.git , fixed, add rn-fetch-blob working ios and android, remove react-native-blob-util

locht avatar Sep 23 '22 03:09 locht

Hi @wonday , is https://github.com/wonday/react-native-pdf/pull/678 released? as i can't see changes in lib code.

paritosh-yadav avatar Nov 15 '22 06:11 paritosh-yadav

rn-fetch-blob and react-native blob util can't work together.remove rn-fetch-blob and use react-native blob util instead of this

MahiiCoder avatar Dec 05 '22 03:12 MahiiCoder