feat:下载管理页面,集成分享功能

This commit is contained in:
Developer
2026-03-19 20:11:05 +08:00
parent 0fbfdadf6a
commit c0b7b8e974
8 changed files with 363 additions and 9 deletions

View File

@@ -60,6 +60,7 @@ function findFrameByTime(index: number[], seekTime: number): number {
export interface NativeVideoPlayerRef {
seek: (t: number) => void;
setPaused: (v: boolean) => void;
}
interface Props {
@@ -132,6 +133,9 @@ export const NativeVideoPlayer = forwardRef<NativeVideoPlayerRef, Props>(
seek: (t: number) => {
videoRef.current?.seek(t);
},
setPaused: (v: boolean) => {
setPaused(v);
},
}));
const currentDesc =
@@ -547,7 +551,7 @@ export const NativeVideoPlayer = forwardRef<NativeVideoPlayerRef, Props>(
</TouchableOpacity>
)}
<TouchableOpacity style={styles.ctrlBtn} onPress={onFullscreen}>
<Ionicons name="expand" size={16} color="#fff" />
<Ionicons name="expand" size={18} color="#fff" />
</TouchableOpacity>
</View>
</LinearGradient>