Closed dariopellegrini closed 6 years ago
Same error for me :(
Any resolution to this problem? I am experiencing the same issue.
ok, so I removed the platform and added it again and now I am loading the plugin correctly.
Confirm: tns platform remove android and then tns run android. This will solve the problem.
Hello. In iOS works perfectly. In Android it I have this error: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'OnLoadCompleteListener' of undefined
component.ts
import { PDFView } from 'nativescript-pdf-view'; import { registerElement } from 'nativescript-angular'; registerElement('PDFView', () => PDFView);
ngOnInit() { this.path = "https://learn.zu.ac.ae/webapps/dur-browserCheck-bb_bb60/samples/sample.pdf" }
onLoad() { console.log("Loaded") }
component.html <PDFView [src]="path" (load)="onLoad()">