Skip to content

Ref in Pdf Component #984

@danielmorbeck

Description

@danielmorbeck

Because of the migration from class Component to Function Component, ts gives an error when trying to use ref prop in the Pdf component. Any other suggestion on how to access setPage() function?

Type '{ source: { uri: string; }; style: { flex: number; backgroundColor: string; }; horizontal: false; enablePaging: true; enableAnnotationRendering: true; enableAntialiasing: true; trustAllCerts: false; ... 4 more ...; ref: RefObject<...>; }' is not assignable to type 'IntrinsicAttributes & PdfProps'. Property 'ref' does not exist on type 'IntrinsicAttributes & PdfProps'.ts(2322)

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