import { StyleSheet, Dimensions, View } from "react-native";
import Pdf from "react-native-pdf";
const HomeScreen = () => {
const source = {
uri:
"http://samples.leanpub.com/thereactnativebook-sample.pdf",
cache: true,
};
return (
<View style={styles.container}>
<Pdf source={source} style={styles.pdf} />
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
},
pdf: {
width: Dimensions.get("window").width,
height: Dimensions.get("window").height,
backgroundColor: "white",
justifyContent: "center",
alignItems: "center",
},
});
export default HomeScreen;```
What
react-nativeversion are you using?0.63.2
What
react-native-pdfversion are you using?6.2.0
What platform does your issue occur on? (android/ios/both)
android
Describe your issue as precisely as possible :
Load a pdf in the android and enable the accessibility by going to
Setting->Accessibility->Screen Reader -> Voice Assistant - On
The PDF is loading but the screen reader is not reading the content of the pdf file. In the iPhone it is
reading the content
logsNo errors to show.
Join a screenshot or video of the problem on the simulator or device?
Show us the code you are using?