diff options
| author | Hailey <me@haileyok.com> | 2024-08-15 16:29:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-15 16:29:16 -0700 |
| commit | a5af24b53b6085cfb5547592c29155bc10e71f9e (patch) | |
| tree | 6946c933322c1cdfc455e63c02ca74b18651117b /modules/expo-bluesky-swiss-army/src/HLSDownload/index.native.tsx | |
| parent | b6e515c664d51ffe357c3562fd514301805ade8c (diff) | |
| download | voidsky-a5af24b53b6085cfb5547592c29155bc10e71f9e.tar.zst | |
Revert "[Video] Download videos" (#4945)
Diffstat (limited to 'modules/expo-bluesky-swiss-army/src/HLSDownload/index.native.tsx')
| -rw-r--r-- | modules/expo-bluesky-swiss-army/src/HLSDownload/index.native.tsx | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/modules/expo-bluesky-swiss-army/src/HLSDownload/index.native.tsx b/modules/expo-bluesky-swiss-army/src/HLSDownload/index.native.tsx deleted file mode 100644 index 92f26192e..000000000 --- a/modules/expo-bluesky-swiss-army/src/HLSDownload/index.native.tsx +++ /dev/null @@ -1,39 +0,0 @@ -import React from 'react' -import {StyleProp, ViewStyle} from 'react-native' -import {requireNativeModule, requireNativeViewManager} from 'expo-modules-core' - -import {HLSDownloadViewProps} from './types' - -const NativeModule = requireNativeModule('ExpoHLSDownload') -const NativeView: React.ComponentType< - HLSDownloadViewProps & { - ref: React.RefObject<any> - style: StyleProp<ViewStyle> - } -> = requireNativeViewManager('ExpoHLSDownload') - -export default class HLSDownloadView extends React.PureComponent<HLSDownloadViewProps> { - private nativeRef: React.RefObject<any> = React.createRef() - - constructor(props: HLSDownloadViewProps) { - super(props) - } - - static isAvailable(): boolean { - return NativeModule.isAvailable() - } - - async startDownloadAsync(sourceUrl: string): Promise<void> { - return await this.nativeRef.current.startDownloadAsync(sourceUrl) - } - - render() { - return ( - <NativeView - ref={this.nativeRef} - style={{height: 0, width: 0}} - {...this.props} - /> - ) - } -} |
