diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 52c817c739b3..24a8d07b7d34 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -1999,7 +1999,7 @@ SPEC CHECKSUMS: SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17 Turf: 13d1a92d969ca0311bbc26e8356cca178ce95da2 VisionCamera: 0a6794d1974aed5d653d0d0cb900493e2583e35a - Yoga: e64aa65de36c0832d04e8c7bd614396c77a80047 + Yoga: 13c8ef87792450193e117976337b8527b49e8c03 PODFILE CHECKSUM: 0ccbb4f2406893c6e9f266dc1e7470dcd72885d2 diff --git a/src/components/VideoPlayerContexts/PlaybackContext.js b/src/components/VideoPlayerContexts/PlaybackContext.tsx similarity index 52% rename from src/components/VideoPlayerContexts/PlaybackContext.js rename to src/components/VideoPlayerContexts/PlaybackContext.tsx index 8cf09f81c614..229f9c2b5561 100644 --- a/src/components/VideoPlayerContexts/PlaybackContext.js +++ b/src/components/VideoPlayerContexts/PlaybackContext.tsx @@ -1,52 +1,42 @@ -import PropTypes from 'prop-types'; +import type {Video} from 'expo-av'; import React, {useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react'; +import type {View} from 'react-native'; import useCurrentReportID from '@hooks/useCurrentReportID'; +import type ChildrenProps from '@src/types/utils/ChildrenProps'; +import type {PlaybackContext} from './types'; -const PlaybackContext = React.createContext(null); +const Context = React.createContext(null); -function PlaybackContextProvider({children}) { - const [currentlyPlayingURL, setCurrentlyPlayingURL] = useState(null); - const [sharedElement, setSharedElement] = useState(null); - const [originalParent, setOriginalParent] = useState(null); - const currentVideoPlayerRef = useRef(null); - const {currentReportID} = useCurrentReportID(); +function PlaybackContextProvider({children}: ChildrenProps) { + const [currentlyPlayingURL, setCurrentlyPlayingURL] = useState(null); + const [sharedElement, setSharedElement] = useState(null); + const [originalParent, setOriginalParent] = useState(null); + const currentVideoPlayerRef = useRef