nativescript-pdf-view
nativescript-pdf-view copied to clipboard
I can't get pdfview to render in nativescript 5 angular 7
I am not able to get pdfview to render on Android. I have even hard coded the external url. I am using Nativescript 5 and Angular 7 Here is my setup
import { registerElement } from 'nativescript-angular';
registerElement('PDFView', () => PDFView);
The html code:
<GridLayout *ngIf="displayAttach" rows="auto, *" columns="*">
<StackLayout row="0" class="attach-header">
<Label class="fa back-icon" text="" (tap)="onDismissAttachment()"></Label>
</StackLayout>
<StackLayout row="1">
<PDFView src="http://www.orimi.com/pdf-test.pdf"></PDFView>
<Label text="Hello World"></Label>
<!-- <WebView row="1" #webview [src]="attachSrc"></WebView> -->
</StackLayout>
</GridLayout>
The html is running inside a modal dialog.
Any suggestions/ help would be greatly appreciated.
I am sorry, I pressed the wrong button.
+1
Hi, please check out the updated demo in https://github.com/madmas/nativescript-pdf-view, it's using the TNS 6. Also I verified with Angular and it worked as expected. DO you still experience these difficulties?