wonday / react-native-pdf

A <Pdf /> component for react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'Pdf' has no propType for native prop RCTPdf.acessibilityLabel of native type 'String'

somoso opened this issue · comments

commented

I'm trying to run a debug build on my Android device, but I can't even get the app to start up properly without the following message and then the app crashing:

screenshot_2017-08-18-11-38-57

I'm using:

  • react: ^15.4.2
  • react-native: ^0.42.0
  • react-native-pdf: "^1.3.0

react-native-pdf v1.3.0 need react-native v0.47.x, please update your RN or use react-native-pdf old version.

commented

Thanks for the quick reply! I've downgraded to 1.2.7 and now everything works.

@somoso
I use react@15.4.2, reacr-native@0.38.0, react-native-pdf@1.0.9, also show this red screen. And I can't update my RN with some reason ,so hwo can i deal with this? Please.

commented

In the end I used react-native-pdf@1.1.0. I was also deleting my node_modules folder and running npm install. I was also using react-native@0.42.0, which I admit probably doesn't help too much.

Worst case scenario, I'd fork this project and modify the code to remove the acessibilityLabel if I didn't need it for my project.

I'm sorry I can't be more helpful than that.

I'm able to bypass this error and it's run correctly on react-native@0.42.3.
https://github.com/bavuongco10/react-native-pdf