itinance / itinance/react-native-fs

RNFS can't write file as a doc file in iOS

Open
#730 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

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. I'm opening the written file from the file manager itself. But that generated file can be opened using LibreOffice write for mac but, not in iOS. Is there any workaround for this problem.
![Image-1](https://user-images.githubusercontent.com/40576238/62617987-c703e200-b930-11e9-91f1-c730a8e4850a.jpg)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.