react-native-pdf icon indicating copy to clipboard operation
react-native-pdf copied to clipboard

Android Accessibility- Screen reader mode not reading the pdf content

Open donypjoseph opened this issue 5 years ago • 6 comments

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

donypjoseph avatar Sep 18 '20 19:09 donypjoseph

any updates?

vitaliiHaliiEleks avatar Nov 17 '20 13:11 vitaliiHaliiEleks

I have the same issue, it works on ios but not on android talkbalk "react-native": "0.63.3", "react-native-pdf": "^6.2.2",

lefterisk avatar Feb 17 '21 10:02 lefterisk

i am also facing the same issue

praneethrallyhealth avatar Jan 17 '22 07:01 praneethrallyhealth

We're also facing the same problem. Any news on that? Anyone able to make it work somehow?

amplifilabs avatar Mar 31 '22 13:03 amplifilabs

I also face the same problem. Have you solved it yet

JQQ-GIT avatar Jun 27 '22 09:06 JQQ-GIT

@donypjoseph Have you solved it yet?

hds220 avatar Jul 29 '22 08:07 hds220