0.5.1 • Published 8 months ago
@fugood/react-native-video-player v0.5.1
@fugood/react-native-video-player
Video player for React Native. Uses platform owned player API, and pay attention to the performance.
Installation
npm install @fugood/react-native-video-player
Usage
import VideoPlayer from "@fugood/react-native-video-player";
// ...
<VideoPlayer
source={{ uri: "https://www.w3schools.com/html/mov_bbb.mp4" }}
onReadyForDisplay={() => console.log("ready")}
onLoad={() => console.log("load")}
onProgress={() => console.log("progress")}
onEnd={() => console.log("end")}
onBuffer={() => console.log("buffering")}
style={{ width: 300, height: 300 }}
/>;
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library