import React from 'react'; import type { ComponentProps, ComponentKey } from './types'; import ControlThumb from './ControlThumb'; import type { SharedValue } from 'react-native-reanimated'; import { StyleSheet, Text, View } from 'react-native'; import CurrentTime from './CurrentTime'; import { formatTime } from '../utils/time'; type PartialComponentProps = { [K in ComponentKey]: Partial; }; const defaultRenderCurrentTime = (currentTime: SharedValue) => { return ( ); }; const defaultRenderDuration = (duration: number) => { return ( {formatTime(duration)} ); }; export const defaultProps: PartialComponentProps = { slider: { activeColor: 'white', inactiveColor: '#aaa', playableColor: '#ccc', thumb: , renderTotalDuration: defaultRenderDuration, renderCurrentTime: defaultRenderCurrentTime, }, videoState: {}, }; const styles = StyleSheet.create({ currentTimeContainer: { marginRight: 10, width: 35, }, totalDurationContainer: { marginLeft: 10, }, totalDurationText: { fontSize: 14, color: 'white', }, });