不支持的文件页面会显示xx is not supported,我想尝试修改默认的提示,但是设置onError不会触发执行,这是为什么。另外文档提供的errorComponent,unsupportedComponent,怎么设置也报是不支持的类型,
`import FileViewer from 'react-file-viewer';
onError(e) {
// logger.logError(e, 'error in file-viewer');
console.log(e)
}
<FileViewer
filePath={url}
fileType={type}
//onError={this.onError}
//unsupportedComponent ={}
//errorComponent={}
onError={(e) => {
console.log(e)
}}
/>`