securedeveloper / react-data-export

Export dataset in react.
https://securedeveloper.github.io/react-data-export/
MIT License
179 stars 194 forks source link

React data export not working in web view #112

Open anik587 opened 5 years ago

anik587 commented 5 years ago

React export excel not working on web view(android) but working on the browser. My code is given below.


 <ExcelFile element={<button className={'btn btn-primary btn-block'}>Excel</button>}
                               filename={props.filters.reportName} fileExtension={'xlsx'}>
                        <ExcelSheet dataSet={props.dataSetExcel} name="Organization"/>
                    </ExcelFile>

Normally download is working but downloading through webview (android) is not working.

Need to download using :

const ExcelFile = ReactExport.ExcelFile;
const ExcelSheet = ReactExport.ExcelFile.ExcelSheet;

Steps to reproduce: Just build an android app(commonly known as web app not react native app) using those code and data

Lib Version: ^0.5.0