diff --git a/src/specs/NativeVideoDecoderProperties.ts b/src/specs/NativeVideoDecoderProperties.ts index 39493df4bd..7bfbf021f2 100644 --- a/src/specs/NativeVideoDecoderProperties.ts +++ b/src/specs/NativeVideoDecoderProperties.ts @@ -2,7 +2,7 @@ import type {TurboModule} from 'react-native'; import {TurboModuleRegistry} from 'react-native'; import type {Int32} from 'react-native/Libraries/Types/CodegenTypes'; -export interface NativeVideoDecoderPropertiesSpec extends TurboModule { +interface Spec extends TurboModule { getWidevineLevel: () => Promise; isCodecSupported: ( mimeType: string, @@ -12,6 +12,6 @@ export interface NativeVideoDecoderPropertiesSpec extends TurboModule { isHEVCSupported: () => Promise<'unsupported' | 'hardware' | 'software'>; } -export default TurboModuleRegistry.getEnforcing( +export default TurboModuleRegistry.getEnforcing( 'RNVDecoderPropertiesModule', ); diff --git a/src/specs/NativeVideoManagerModule.ts b/src/specs/NativeVideoManagerModule.ts index c15ee07579..b5e73fd97b 100644 --- a/src/specs/NativeVideoManagerModule.ts +++ b/src/specs/NativeVideoManagerModule.ts @@ -9,11 +9,9 @@ export type VideoSaveData = { uri: string; }; -export interface NativeVideoManagerModuleSpec extends TurboModule { +interface Spec extends TurboModule { save: (reactTag: Int32, option: UnsafeObject) => Promise; getCurrentPosition: (reactTag: Int32) => Promise; } -export default TurboModuleRegistry.getEnforcing( - 'VideoManager', -); +export default TurboModuleRegistry.getEnforcing('VideoManager'); diff --git a/src/specs/VideoNativeComponent.ts b/src/specs/VideoNativeComponent.ts index f4545e4b4e..76dafb5254 100644 --- a/src/specs/VideoNativeComponent.ts +++ b/src/specs/VideoNativeComponent.ts @@ -370,30 +370,32 @@ export interface VideoNativeProps extends ViewProps { } type NativeVideoComponentType = HostComponent; -type NativeVideoComponentRefType = React.ElementRef; export interface NativeVideoCommands { seek: ( - viewRef: NativeVideoComponentRefType, + viewRef: React.ElementRef, time: Float, tolerance?: Float, ) => void; setPlayerPauseState: ( - viewRef: NativeVideoComponentRefType, + viewRef: React.ElementRef, paused: boolean, ) => void; - setVolume: (viewRef: NativeVideoComponentRefType, volume: Float) => void; + setVolume: ( + viewRef: React.ElementRef, + volume: Float, + ) => void; setFullScreen: ( - viewRef: NativeVideoComponentRefType, + viewRef: React.ElementRef, fullScreen: boolean, ) => void; setLicenseResult: ( - viewRef: NativeVideoComponentRefType, + viewRef: React.ElementRef, result: string, licenseUrl: string, ) => void; setLicenseResultError: ( - viewRef: NativeVideoComponentRefType, + viewRef: React.ElementRef, error: string, licenseUrl: string, ) => void;