-
-
Notifications
You must be signed in to change notification settings - Fork 165
Open
Description
Issue Description
while loading pdf in this package we getting error in android and white screen in the IOS
In android
Steps to Reproduce / Code Snippets
//import libraries
import { NavigationContainer } from '@react-navigation/native';
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import PDFReader from 'rn-pdf-reader-js'
// create a component
const PdfViewer = (props) => {
return (
<View style={{ backgroundColor: '#fff', width: '100%', height: '100%' }}>
<PDFReader
source={{
uri: props.route.params.pdfUri,
}}
withPinchZoom={true}
withScroll={true}
/>
</View>
);
};
//make this component available to the app
export default PdfViewer;
Expected Results
view pdf
Additional Information
- Nodejs version: [16.13.0]
- React Native version: [0.72.3]
- rn-pdf-reader-js version: [4.1.1]
- Platform(s) (iOS, Android, or both?): [both]
erbud
Metadata
Metadata
Assignees
Labels
No labels