oplayer

0.0.1 • Public • Published

oplayer

react native video player for expo-av

Install

yarn add oplayer expo-av

Use

import React from 'react'
import Oplayer from 'oplayer'

export default function Player() {
  return (
    <Oplayer
      source={{ uri: './001.mp4' }} // 播放地址
      themeColor='#946ce6' // 默认为 clicli 基佬紫
      callback={{
        back // 非全屏状态下返回键回调,一般为路由返回
      }}
    />
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i oplayer

Weekly Downloads

16

Version

0.0.1

License

ISC

Unpacked Size

8.77 kB

Total Files

6

Last publish

Collaborators

  • yse