HI,
I want activity indicator while video is loading.
const [opacity, setopacity] = useState(0);
const onLoadStart = () => {
setopacity(1);
}
const onLoad = () => {
setopacity(0);
}
const onBuffer = ({isBuffering}) => {
setopacity(isBuffering ? 1 : 0);
}
I am using flatlist video.Its working but if one video's activity indicator is loading automatically all video activity indicator is loading
Replies
Know the answer? Post it — somebody with the same question will find it here.