Expo Share for the first time

I’m trying Expo share for the first time and i have a question.

How do i send a base64 url on android devices?

That is my code:
const onShare = async () => {

    try {
        const result = await Share.share({
            //title: 'hi',
            url: `data:application/pdf;base64,${base64img}`,
            //message: `message test`,
        }) 
    } catch (error) {
        alert(error.message);
    }
}

It works fine on IOS so how do i fix it on android?
I read expo share documentation and it says the url prop works only on IOS, soo it is not possible to send base64 pdf files on android?

OBS: the base64 is correct cause it works on IOS just fine.

Nevermind, i used expo sharing and it works!

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.