Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
somoso opened this issue Aug 18, 2017 · 5 comments

Comments

@somoso
Copy link

somoso commented Aug 18, 2017

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
@wonday
Copy link
Owner

wonday commented Aug 18, 2017

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

@somoso
Copy link
Author

somoso commented Aug 18, 2017

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

@somoso somoso closed this as completed Aug 18, 2017
@haiifeng
Copy link

haiifeng commented Oct 12, 2017

@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.

@somoso
Copy link
Author

somoso commented Oct 13, 2017

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.

@bavuongco10
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants