Skip to content

Android Accessibility- Screen reader mode not reading the pdf content #503

@donypjoseph

Description

@donypjoseph

What react-native version are you using?
0.63.2
What react-native-pdf version are you using?
6.2.0
What platform does your issue occur on? (android/ios/both)
android
Describe your issue as precisely as possible :

  1. Steps to reproduce the issue or to explain in which case you get the issue
    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
  2. Interesting logs
    No errors to show.
    Join a screenshot or video of the problem on the simulator or device?

Show us the code you are using?

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;```

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