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

Native component for "RNPDFView" does not exist

Open Tako opened this issue 7 years ago • 12 comments

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

Anyone ?

Tako avatar Apr 11 '17 13:04 Tako

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

felixmeziere avatar Apr 14 '17 17:04 felixmeziere

Same error.

DeveloperAlly avatar Apr 16 '17 03:04 DeveloperAlly

me too

alwaysmavs avatar Apr 16 '17 06:04 alwaysmavs

same here. Any help on this maybe?

paukul avatar Apr 20 '17 13:04 paukul

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

+1

dittmarconsulting avatar May 05 '17 00:05 dittmarconsulting

same

cidylle avatar May 09 '17 23:05 cidylle

same

genglei01 avatar May 23 '17 01:05 genglei01

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.

jpdenford avatar May 31 '17 00:05 jpdenford

The suggested solution above didn't work for me.

Can we have a real FIX for this issue?

facuescobar avatar Jun 12 '17 21:06 facuescobar

@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

jpdenford avatar Jun 12 '17 21:06 jpdenford

@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 avatar Jun 12 '17 22:06 facuescobar

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

facuescobar avatar Jun 12 '17 22:06 facuescobar