小编Rod*_*llo的帖子

如何正确使用 Expo.DocumentPicker.getDocumentAsync。[博览会] [ReactNative]

我试图限制可以由 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 expo

6
推荐指数
1
解决办法
2964
查看次数

React Native:高程样式属性 - 更改阴影方向

我可以在React Native上更改高程样式属性(仅限android)的阴影方向吗?

通常阴影显示在元素的底部,但我想在顶部显示它.

谢谢

android styles elevation shadow react-native

5
推荐指数
1
解决办法
2319
查看次数

标签 统计

react-native ×2

android ×1

elevation ×1

expo ×1

shadow ×1

styles ×1