I'm trying to open a doc file written using RNFS. But I'm unable to open that file. When I try to open the file using the word application in iOS , I'm getting this error showing "Can't open file, file format doesn't match the file extension".
var path = RNFS.DocumentDirectoryPath + "/test.doc";
RNFS.writeFile(
path,
"Project Details\n",
"utf8"
);
But this is working fine in android.