小编Phạ*_*Tài的帖子

Share 不适用于 iOS 13. Expo 模块

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)

react-native expo ios13

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

如何解决“在 iOS 上使用 expo 播放视频但没有声音”的问题

我使用世博会的视频组件。我可以播放视频,但在 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)

video ios react-native expo react-native-video

3
推荐指数
2
解决办法
9865
查看次数

标签 统计

expo ×2

react-native ×2

ios ×1

ios13 ×1

react-native-video ×1

video ×1