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.
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, likerequire('../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.