@8man/react-native-media-console
Version:
A media player for the react-native-video component
22 lines (21 loc) • 880 B
TypeScript
import React from 'react';
import { GestureResponderHandlers } from 'react-native';
import type { VideoAnimations } from '../types';
interface TopControlProps {
title: {
primary: string;
secondary?: string;
};
showControls: boolean;
panHandlers: GestureResponderHandlers;
animations: VideoAnimations;
disableBack: boolean;
disableVolume: boolean;
volumeFillWidth: number;
volumeTrackWidth: number;
volumePosition: number;
onBack: () => void;
resetControlTimeout: () => void;
}
export declare const TopControls: React.MemoExoticComponent<({ title, showControls, panHandlers, animations: { AnimatedView, controlsOpacity, topControl }, disableBack, disableVolume, volumeFillWidth, volumePosition, volumeTrackWidth, onBack, resetControlTimeout, }: TopControlProps) => React.JSX.Element>;
export {};