-
-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No flip animation each page is rendering independantly #54
Comments
|
You should be using only one HtmlFlipBook component. Currently you're rendering one HtmlFlipBook component per item in your map function. Also you should probably use Document (pdf viewer) as a container for one Page. |
like this ? |
Yup, like that. Does it work now? |
console errors are cleaned but still rendering every pdf page individually |
|
i am fetching a list of document from an api and its an array of object each object contains url key with s3 bucket url as value
below code is rendering files but each page and pdf is rendering separately thus making page flip animation not working
i think it is because of pagnumber calculation please provide support
{filteredData.map((item, index) => { return ( <Document key={index} file={item.url}> <HTMLFlipBook width={width} height={height}> <Page pageNumber={1} /> </HTMLFlipBook> </Document> ); })}
The text was updated successfully, but these errors were encountered: