This is just a warning : Warning: Failed prop type: Invalid propcontentof typeobjectsupplied toDownload, expectedstring. in Download, the file is downloaded correctly.
It happens when content property is set to a UTF8 bytes array.
If I convert the byte array to a string, there is no warning but the file data is then incorrect (I am trying to download a PDF file).
This is just a warning :
Warning: Failed prop type: Invalid prop
contentof type
objectsupplied to
Download, expected
string. in Download
, the file is downloaded correctly.It happens when content property is set to a UTF8 bytes array.
If I convert the byte array to a string, there is no warning but the file data is then incorrect (I am trying to download a PDF file).