所以,我的代码是:
Expo.DocumentPicker.getDocumentAsync({type: 'application/json'})
但是所有 .json 使用此MIME过滤器禁用文件(在Android 7.1.1上测试)。如果一切正常,我做错了什么 type: */*
.json
type: */*
事实证明,Android simple不知道JSON MIME类型。唯一的解决方案是使用来自的另一个文件扩展名 this list .