Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A <Video /> component for react-native

License

NotificationsYou must be signed in to change notification settings

JedrekDabrowski/react-native-video

 
 

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

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

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=()=>{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,},});

Supported by

📱 TWG provides both free and commercial support for this project. Feel free to contact us 🤝 to build something awesome together! 🚀

TheWidlarzGroup

About

A <Video /> component for react-native

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java40.1%
  • Swift35.5%
  • TypeScript11.4%
  • C++5.0%
  • Objective-C3.6%
  • Kotlin2.8%
  • Other1.6%

[8]ページ先頭

©2009-2025 Movatter.jp