File tree Expand file tree Collapse file tree
src/components/MediaPlayer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8686 "uuid" : " ^11.0.3"
8787 },
8888 "peerDependencies" : {
89- "react-native-avoid-softinput" : " ^4.0.1" ,
90- "expo-file-system" : " ~19.0.21"
89+ "react-native-avoid-softinput" : " ^4.0.1"
9190 },
9291 "peerDependenciesMeta" : {
9392 "react-native-avoid-softinput" : {
Original file line number Diff line number Diff line change 11import { AVPlaybackSource , AVPlaybackStatus } from "expo-av" ;
2- import { File , Paths } from "expo-file-system" ;
2+ import type { File as FileType , Paths as PathsType } from "expo-file-system" ;
33import { v4 as uuid } from "uuid" ;
44import { Platform } from "react-native" ;
55import React from "react" ;
@@ -65,6 +65,10 @@ export async function normalizeBase64Source(
6565 source : AVPlaybackSource ,
6666 type : "audio" | "video"
6767) : Promise < AVPlaybackSource > {
68+ const expoFs = require ( "expo-file-system" ) ;
69+ const File : typeof FileType = expoFs . File ;
70+ const Paths : typeof PathsType = expoFs . Paths ;
71+
6872 const uri : string | undefined = ( source as any ) ?. uri ;
6973
7074 if ( Platform . OS === "ios" && uri && ! uri . match ( URL_REGEX ) ) {
You can’t perform that action at this time.
0 commit comments