cnjon / react-native-pdf-view

React Native PDF View
MIT License
404 stars 167 forks source link

Native component for "RNPDFView" does not exist #60

Open Tako opened 7 years ago

Tako commented 7 years ago

Still getting Warning: Native component for "RNPDFView" does not exist on import ?

Anyone ?

felixmeziere commented 7 years ago

I do even though I linked everything fine, I don't understand why... help pls :)

DeveloperAlly commented 7 years ago

Same error.

alwaysmavs commented 7 years ago

me too

paukul commented 7 years ago

same here. Any help on this maybe?

dittmarconsulting commented 7 years ago

"react-native": "0.43.3", "react": "16.0.0-alpha.6", "react-native-pdf-view": "^0.3.2",

+1

cidylle commented 7 years ago

same

genglei01 commented 7 years ago

same

jpdenford commented 7 years ago

Adding it into your package.json straight from github as per this comment is working for me on iOS, haven't tested on android yet. "react-native-pdf-view": "git+https://github.com/cnjon/react-native-pdf-view.git" Obviously this is a workaround but will work until the repo is published again.

facuescobar commented 7 years ago

The suggested solution above didn't work for me.

Can we have a real FIX for this issue?

jpdenford commented 7 years ago

@fackius, make sure to run npm install or yarn (if you use it) to download the library after adding it to your package.json Then run react-native link - you may need to rerun react-native run-bla again to get the lib copied over

facuescobar commented 7 years ago

@jpdenford I tried it and it doesn't work! And now, because of trying that, I am having more errors and the build fails (it was working before)

4 warnings and 18 errors generated.

** BUILD FAILED **

The following build commands failed:

    CompileC /Users/myuser/dev/comp/app-mobile/ios/build/Build/Intermediates/RNPDFView.build/Debug-iphonesimulator/RNPDFView.build/Objects-normal/x86_64/RNPDFViewManager.o RNPDFView/RNPDFViewManager.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)

Installing build/Build/Products/Debug-iphonesimulator/myapp.app
Launching com.myapp.myapp
com.myapp.myapp: 36581

Full log: https://gist.github.com/fackius/63adf33997c2254ee060ec8b70a5307a

Any idea?

facuescobar commented 7 years ago

@jpdenford now, it's working with "react-native-pdf-view": "git+https://github.com/cnjon/react-native-pdf-view.git"