chore: cleanup ref (#4288)

* refactor: cleanup ref
* fix: video-ref type
* refactor: cleanup code
This commit is contained in:
Kamil Moskała
2024-11-15 21:17:56 +01:00
committed by GitHub
parent 681aed0aed
commit de81829d73
5 changed files with 11 additions and 30 deletions

View File

@@ -1,13 +1,13 @@
import React, {type FC, useCallback, useRef, useState, useEffect} from 'react';
import React, {useCallback, useRef, useState, useEffect} from 'react';
import {Platform, TouchableOpacity, View, StatusBar} from 'react-native';
import Video, {
VideoRef,
SelectedVideoTrackType,
BufferingStrategyType,
SelectedTrackType,
ResizeMode,
type VideoRef,
type AudioTrack,
type OnAudioTracksData,
type OnLoadData,
@@ -23,19 +23,17 @@ import Video, {
type OnPlaybackStateChangedData,
type OnPlaybackRateChangeData,
type OnVideoTracksData,
type ReactVideoSource,
type VideoTrack,
type SelectedTrack,
type SelectedVideoTrack,
type EnumValues,
OnBandwidthUpdateData,
ControlsStyles,
type OnBandwidthUpdateData,
type ControlsStyles,
} from 'react-native-video';
import styles from './styles';
import {type AdditionalSourceInfo} from './types';
import {
bufferConfig,
isAndroid,
srcList,
textTracksSelectionBy,
audioTracksSelectionBy,