mirror of
https://gh-proxy.org/https://github.com/tiajinsha/JKVideo
synced 2026-07-07 23:18:38 +08:00
fix: player height collapse and danmaku empty state
This commit is contained in:
@@ -58,7 +58,9 @@ export default function DanmakuList({ danmakus, currentTime, visible, onToggle }
|
|||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
ListEmptyComponent={
|
ListEmptyComponent={
|
||||||
<Text style={styles.empty}>暂无弹幕</Text>
|
<Text style={styles.empty}>
|
||||||
|
{danmakus.length === 0 ? '暂无弹幕' : '弹幕将随视频播放显示'}
|
||||||
|
</Text>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -314,7 +314,7 @@ export function NativeVideoPlayer({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[styles.container, style]}>
|
<View style={[styles.container, { width: SCREEN_W, height: VIDEO_H }, style]}>
|
||||||
{resolvedUrl ? (
|
{resolvedUrl ? (
|
||||||
<Video
|
<Video
|
||||||
key={resolvedUrl}
|
key={resolvedUrl}
|
||||||
|
|||||||
Reference in New Issue
Block a user