cyntler / cyntler/react-doc-viewer

Page rerender making empty document viewer

Open
#222 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
481
Forks
147
PR merge metrics
No merged PRs in 30d

Description

The document viewer is a child element of a page, when the page loads initially the document viewer is working perfect. Refer the screen shot #1.

The page state modification will trigger the re render cycle, at this time document viewer is becoming empty refer the screen shot # 2.

Screen shot #1 :
image

Screen Shot #2:

image

```
const docs = [
{ uri: require('./lorem-ipsum.pdf'), fileType: 'pdf' },
{ uri: require('./loremipsum.pdf'), fileType: 'pdf' },
];


```

Question 2: Is there any way setPageNumber directly and how to know the total number of pages.

Please provide some help or comments.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.