【发布时间】:2021-08-10 10:09:25
【问题描述】:
我在使用 Android 设备上的链接打开图库时遇到问题。它在 iOS 上完美运行。 我正在使用这个。
openPhotos = () =>{
switch(Platform.OS){
case "ios":
Linking.openURL("photos-redirect://");
break;
case "android":
Linking.openURL("content://media/internal/images/media");
break;
default:
console.log("Could not open gallery app");
}
}
android上弹出弹窗,选择照片后出现黑屏here is the screenshot for the same.
【问题讨论】:
-
我的动机是打开图库以查看相机应用程序最近点击的图像并减少代码实现。看来我必须使用这个包并自己设计一个画廊组件。感谢您的指导????。
标签: android react-native react-native-android react-native-linking