react-native-reanimated-player
Version:
A react-native video player that interacts like Youtube player, built upon Reanimted v2 & react-native-gesture-handle
21 lines (20 loc) • 647 B
TypeScript
/**
* Format a time string as mm:ss
*
* @param {int} time time in milliseconds
* @return {string} formatted time string in mm:ss format
*/
export declare const formatTime: ({ time, symbol, duration, showHours, }: {
time?: number | undefined;
symbol?: string | undefined;
duration?: number | undefined;
showHours?: boolean | undefined;
}) => string;
export declare const secondToTime: (seconds: number) => string;
/**
* Format a time string as mm:ss
*
* @param {int} time time in milliseconds
* @return {string} formatted time string in mm:ss format
*/
export declare const formatTimeToMins: (duration: number) => string;