SDK 版本:35 平台(Android/iOS/web/all):iOS:13 在我将 iPhone 更新到 iOS 13 后。当我选择分享到 Instagram 时,分享不起作用。当我选择它时什么也没有发生。共享正在与其他社交网络合作
iOS 13. SDK 35. Expo v35
handleShare = async () =>{
this.setState({share : true, opa : 0.4})
if(!this.state.downloaded){
await this.handleDownload();
}
if(Platform.OS == 'ios'){
try {
const result = await Share.share({
message : this.state.uri,
url : this.state.uri,
}, {
excludedActivityTypes : [
"net.whatsapp.WhatsApp.ShareExtension",
]
});
if (result.action === Share.sharedAction) {
if (result.activityType) {
// shared with activity type of result.activityType
} else {
// shared
}
} else if …Run Code Online (Sandbox Code Playgroud) 我使用世博会的视频组件。我可以播放视频,但在 iOS 中没有声音。在安卓上没问题。我该如何解决它。
<Video style={{ width: 340,
height: 220,
borderRadius: 10,
overflow: 'hidden' }}
posterSource={require('../../assets/loading2.gif')}
usePoster={true}
rate={1.0}
isMuted={false}
useNativeControls = {true}
volume={1.0}
playsInSilentLockedModeIOS ={ true }
resizeMode='cover'
shouldPlay={true}
source={{uri : url}} />
Run Code Online (Sandbox Code Playgroud)