wonday / react-native-pdf

A <Pdf /> component for react-native
MIT License
1.6k stars 557 forks source link

there is an "x" symbol on pdf reader react-native-pdf #762

Open allandallopez opened 1 year ago

allandallopez commented 1 year ago

What react-native version are you using? 0.71.8

What react-native-pdf version are you using? 6.7.1

What platform does your issue occur on? both

Describe your issue as precisely as possible : 1) Show PDF file from base 64 source

Join a screenshot or video of the problem on the simulator or device? image (1)

Show us the code you are using?

      <Pdf
          enablePaging={true}
          page={selectedPage}
          source={source}
          onLoadComplete={(numberOfPages, filePath) => {
            setListPage(numberOfPages);
          }}
          onPageChanged={(page, numberOfPages) => {
            setSelectedPage(page);
          }}
          onError={(error) => {
            console.log('Error :', error);
          }}
          onLoadProgress={onLoadProgress}
          onPressLink={onPressLink}
          style={{
            flex: 1,
            width: maxWidth,
            height: maxHeight,
          }}
        />