【发布时间】:2019-06-18 07:15:31
【问题描述】:
我有许多从服务器响应中获取的 URL。我必须在 Flatlist 中显示,有很多链接。每个平面列表,我必须显示一些数据,然后单元格底部需要显示带有进度条的播放器。
import Sound from 'react-native-sound';
const sound = new Sound('http://sounds.com/some-sound', null, (error) => {
if (error) {
// do something
}
// play when loaded
sound.play();
});
有什么建议吗?
【问题讨论】:
标签: react-native audio audio-player react-native-flatlist react-native-sound