0

I used this website to convert the file into bas64 type eConversion to Base64 I am able to export pdf and images (jpeg/png) but not xslx and csv file types. My app needs user the ability to export/download excel files.

 const myCustomShare = async () => {


    const shareOptions = {
      message: `Your data to export`,
      url: data:@file/csv;base64,{base64 value},
    };

    try {
      const ShareResponse = await Share.open(shareOptions);
      console.log(JSON.stringify(ShareResponse));
    } catch (error) {
      console.log("Error => ", error);
    }
  };

data:@file/csv;base64,{base64 value} && data:@file/xslx;base64,{base64 value}. I have these as the url for csv and excel respectively. Thank you in advance,

lonewolf
  • 31
  • 6

0 Answers0