import React, {useEffect, useRef, useState} from 'react'; import {StyleSheet, View} from 'react-native'; import Video from 'react-native-video'; import {Trimmer} from 'react-native-video-processing'; import {SCREEN_HEIGHT, SCREEN_WIDTH} from '../../utils'; interface TrimmerPlayerProps { source: string; videoStyles: Object; hideTrimmer: boolean; handleLoad: Function; onChangedEndpoints: Function; } const TrimmerPlayer: React.FC = ({ source, videoStyles, hideTrimmer, handleLoad, onChangedEndpoints, }) => { // Stores the reference to player for seeking const playerRef = useRef