react-native-doc-viewer icon indicating copy to clipboard operation
react-native-doc-viewer copied to clipboard

PDF or any other document from local file are not previewing

Open bhatti-waqas opened this issue 7 years ago • 4 comments

simulator screen shot - iphone 6s - 2018-07-04 at 16 37 23

bhatti-waqas avatar Jul 04 '18 11:07 bhatti-waqas

I got the same

duongifc avatar Aug 07 '18 06:08 duongifc

work well on master

devapro avatar Aug 07 '18 13:08 devapro

@bhatti-waqas did you find any solution, am facing same issue please help me ?

bhoomesh950 avatar Mar 22 '19 11:03 bhoomesh950

Hello from 2020! I'm encountering this same issue trying to load a .png from base64. Working on React Native 0.60.5 to build an iPad app.

Edit: I discovered my issue. I was passing the filetype as image/png when the library works using just png.

See the file RNDocViewer.m for reference, on line 220 we have: NSString* fileName = [NSString stringWithFormat:@"%@%@%@", filename, @".", filetype];

koktavy avatar Apr 30 '20 19:04 koktavy