我试图限制可以由 Expo.DocumentPicker.getDocumentAsync 选择的文件类型,但没有成功。
如何一次过滤多个 mimeType?
我已经尝试如下:
Expo.DocumentPicker.getDocumentAsync({type: "image/*;application/pdf"});
Run Code Online (Sandbox Code Playgroud)
和
Expo.DocumentPicker.getDocumentAsync({type: "image/*,application/pdf"});
Run Code Online (Sandbox Code Playgroud)
和
Expo.DocumentPicker.getDocumentAsync({type: ["image/*","application/pdf"]}); //CRASH
Run Code Online (Sandbox Code Playgroud)
我正在使用 sdk 27.0.0。
一些建议?世博队?:}
参考:https : //docs.expo.io/versions/latest/sdk/document-picker#type-string----the-mime-type-of
我可以在React Native上更改高程样式属性(仅限android)的阴影方向吗?
通常阴影显示在元素的底部,但我想在顶部显示它.
谢谢