mirror of
https://github.com/tiajinsha/JKVideo.git
synced 2026-05-07 22:27:06 +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>
|
||||
)}
|
||||
ListEmptyComponent={
|
||||
<Text style={styles.empty}>暂无弹幕</Text>
|
||||
<Text style={styles.empty}>
|
||||
{danmakus.length === 0 ? '暂无弹幕' : '弹幕将随视频播放显示'}
|
||||
</Text>
|
||||
}
|
||||
/>
|
||||
)}
|
||||
|
||||
@@ -314,7 +314,7 @@ export function NativeVideoPlayer({
|
||||
};
|
||||
|
||||
return (
|
||||
<View style={[styles.container, style]}>
|
||||
<View style={[styles.container, { width: SCREEN_W, height: VIDEO_H }, style]}>
|
||||
{resolvedUrl ? (
|
||||
<Video
|
||||
key={resolvedUrl}
|
||||
|
||||
Reference in New Issue
Block a user