百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

react-native-media-controls

> 前端框架
开源

一个可用于操作媒体的可爱的 UI 组件。类型严格。

189 stars0 点赞4 次浏览
访问官网GitHub

工具介绍

一个可用于操作媒体的可爱的 UI 组件。类型严格。

react-native-media-controls

A sweet UI component to manipulate your media. Strongly typed using Typescript.

Installation

bash
   // install package
   yarn add react-native-media-controls
   // install react-native-slider, as this is a dependency of this library
   yarn add react-native-slider

Usage

…

Props

Prop Type Optional Default Description
mainColor string Yes rgba(12, 83, 175, 0.9) Change custom color to the media controls
isLoading boolean Yes false When is loading
isFullScreen boolean Yes false To change icon state of fullscreen
fadeOutDelay number Yes 5000 Allows to customize the delay between fade in and fade out transition
progress number No Current time of the media player
duration number No Total duration of the media
playerState number No Could be PLAYING, PAUSED or ENDED (take a look at constants section)
onFullScreen function Yes Triggered when the fullscreen button is pressed. If not provided, the fullscreen icon is not displayed
onPaused function No Triggered when the play/pause button is pressed. It returns the new toggled value (PLAYING or PAUSED)
onReplay function Yes Triggered when the replay button is pressed
onSeek function No Triggered when the user released the slider
onSeeking function Yes Triggered when the user is interacting with the slider
showOnStart boolean Yes true controls the visibility of the controls during the initial render

Constants

javascript
  PLAYING,
  PAUSED,
  ENDED,

Example

Refer to the example folder to find an implementation of this project

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptcontrolsreact-nativetypescriptvideo

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架