Skip to content

mybigday/react-native-video-player

Repository files navigation

@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


Built and maintained by BRICKS.