草庐IT

showShareActionSheetWithOptions

全部标签

javascript - React Native - 使用 showShareActionSheetWithOptions 分享本地镜像

我对使用showShareActionSheetWithOptions共享本地镜像有疑问。这是我的代码:ActionSheetIOS.showShareActionSheetWithOptions({title:"ReactNative",message:"Holamundo",url:'@theme/img/share/share.png',subject:"ShareLink"//foremail});来自documentation:“如果URL指向一个本地文件,或者它是一个base64编码的URI,它指向的文件将被直接加载和共享”。但它不起作用。我不太确定如何访问或如何获取图像的