react-native-vimeo-iframe
Version:
React Native Vimeo Iframe is a library to render Vimeo videos in a React Native app. This component allows you to embed a Vimeo video in your app and have full access to the Vimeo player JS API (more information https://developer.vimeo.com/player/js-api).
36 lines (32 loc) • 667 B
text/typescript
import { WebViewProps } from 'react-native-webview'
export type CallbackType = (data?: any) => void
export interface LayoutProps extends WebViewProps {
handlers?: { [key: string]: any }
videoId: string
params?: string
reference?: string
}
export const PlayerEvents = [
'controlschange',
'fullscreenchange',
'audioprocess',
'canplay',
'canplaythrough',
'complete',
'durationchange',
'emptied',
'ended',
'loadeddata',
'loadedmetadata',
'pause',
'play',
'playing',
'ratechange',
'seeked',
'seeking',
'stalled',
'suspend',
'timeupdate',
'volumechange',
] as const
export type PlayerEvent = typeof PlayerEvents[number]