Skip to content
This repository was archived by the owner on Jun 15, 2024. It is now read-only.
This repository was archived by the owner on Jun 15, 2024. It is now read-only.

I can't get pdfview to render in nativescript 5 angular 7 #41

Description

@JayLHein

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="&#xf355;" (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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions