forked fromTheWidlarzGroup/react-native-video
- Notifications
You must be signed in to change notification settings - Fork0
A <Video /> component for react-native
License
NotificationsYou must be signed in to change notification settings
JedrekDabrowski/react-native-video
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
🎬<Video>
component for React Native
Note: version 5.2.1 won't have any updates. We are currently working on making a 6.0.0 fully stable
documentation is available atreact-native-video.github.io/react-native-video
if you find some issue with new version, don't hesitate to open a ticket! Also Old version can be foundhere
// 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=()=>{constvideoRef=useRef<VideoRef>(null);constbackground=require('./background.mp4');return(<Video// Can be a URL or a local file.source={background}// Store referenceref={videoRef}// Callback when remote video is bufferingonBuffer={onBuffer}// Callback when video cannot be loadedonError={onError}style={styles.backgroundVideo}/>)}// Later on in your styles..varstyles=StyleSheet.create({backgroundVideo:{position:'absolute',top:0,left:0,bottom:0,right:0,},});
📱 TWG provides both free and commercial support for this project. Feel free to contact us 🤝 to build something awesome together! 🚀

About
A <Video /> component for react-native
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Languages
- Java40.1%
- Swift35.5%
- TypeScript11.4%
- C++5.0%
- Objective-C3.6%
- Kotlin2.8%
- Other1.6%