【发布时间】:2019-08-06 10:55:32
【问题描述】:
我正在尝试打开使用 RNFS 编写的 doc 文件。但我无法打开该文件。当我尝试在 iOS 中使用应用程序一词打开文件时,出现此错误,显示“无法打开文件,文件格式与文件扩展名不匹配”。
var path = RNFS.DocumentDirectoryPath + "/test.doc";
RNFS.writeFile(
path,
"Project Details\n",
"utf8"
);
但这在 android 中运行良好。
【问题讨论】:
标签: react-native react-native-ios react-native-fs