redbooth / react-native-quick-look

React Native Component for iOS QuickLook Framework.
MIT License
37 stars 16 forks source link

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? #2

Open pedramsaleh opened 8 years ago

pedramsaleh commented 8 years ago

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 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.

ludovicjamet commented 7 years ago

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

springHyc commented 6 years ago

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

bug