Skip to content

not working in android and iOS both  #195

@SayaliEdulab

Description

@SayaliEdulab

Issue Description

while loading pdf in this package we getting error in android and white screen in the IOS

In android

image

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions