react-native-quick-look icon indicating copy to clipboard operation
react-native-quick-look copied to clipboard

Files don't appear and there is no error message. Is there a way to get diagnostic info from the component to find out why?

Open pedramsaleh opened this issue 9 years ago • 2 comments

I'm trying to display some different file types, but just get a "Loading" animation and they never load. Is there a way to determine if the files are being seen by the component?

I'm passing a reference to the files as a relative path (i.e. put the sample pdf in the same folder as the code using it and display it using <QuickLook style={{ flex: 1 }} assetFileName={ './sample.pdf' } />). Is that approach not supported? How about using a React Native asset file, like require('../assets/sample.pdf')?

Additionally, I I had to wrap each <QuickLook> component in its own view before I got a "Loading" animation for each one, otherwise only the first one had the animation and the others were just blank.

pedramsaleh avatar Oct 12 '16 16:10 pedramsaleh

@pedramsaleh I just fixed this : https://github.com/aerofs/react-native-quick-look/pull/5

ludovicjamet avatar Jun 06 '17 10:06 ludovicjamet

@pedramsaleh 你是怎么引用的“ QuickLook”?我这样引用:import QuickLook from 'react-native-quick-look';,报错说,没有 bug

springHyc avatar Dec 04 '17 07:12 springHyc