if you find some issue with new version, don't hesitate to open a ticket! Also Old version can be found here
Usage
// Load the moduleimportVideo, {VideoRef} from'react-native-video';
// Within your render function, assuming you have a file called// "background.mp4" in your project. You can include multiple videos// on a single screen if you like.constVideoPlayer = () => {
const videoRef = useRef<VideoRef>(null);
const background = require('./background.mp4');
return (
<Video
// CanbeaURLoralocalfile.source={background}
// Storereferenceref={videoRef}
// CallbackwhenremotevideoisbufferingonBuffer={onBuffer}
// CallbackwhenvideocannotbeloadedonError={onError}style={styles.backgroundVideo}
/>
)
}
// Later on in your styles..var styles = StyleSheet.create({
backgroundVideo: {
position: 'absolute',
top: 0,
left: 0,
bottom: 0,
right: 0,
},
});
Supported by
📱 TWG provides both free and commercial support for this project. Feel free to contact us 🤝 to build something awesome together! 🚀
FAQs
A <Video /> element for react-native
We found that better-react-native-video demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.
Package last updated on 18 Mar 2024
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.