react-file-viewer
react-file-viewer copied to clipboard
How to add custom loader?
How to add a custom loader in the code. I tried to send the loader component as children but didn't work.
Like,
<FileViewer
fileType="docx"
filePath={docUrl}
onError={e => console.log(e)}
>
<CustomLoader />
</FileViewer>
And also couldn't find any props name, so that I can send a loader component to that props.
Can you please tell me how to show custom loader?