Skip to content

open PDF using system default app or internal browser #20748

Closed
@arul-prasad

Description

@arul-prasad

I am looking for opening pdf from my react-native application using the internal browser or system default app. for example in android native we will code like below

val intent = Intent(Intent.ACTION_VIEW) intent.setDataAndType(FileProvider.getUriForFile(this, applicationContext.packageName + ".provider", file), "application/pdf") startActivity(intent)

how to achieve this in react-native ?

Note: already found that webview doesn't support with react-native with android, it is new feature request.

Is there any other way to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions