Commit Graph

16 Commits

Author SHA1 Message Date
Developer
53c67079a1 bug修改 2026-05-12 20:27:30 +08:00
Developer
463c0db058 feat: 性能优化 + Bug修复 + 搜索增强
- expo-image 替换 RN Image(VideoCard/LiveCard/BigVideoCard/CommentItem,recyclingKey)
- DanmakuList Animated.Value 对象池,减少 GC 压力
- FlatList 性能参数:windowSize=7 / maxToRenderPerBatch=6 / removeClippedSubviews
- bilibili.ts 请求去重(getVideoDetail/getPlayUrl)
- SESSDATA 迁移至 expo-secure-store(utils/secureStorage.ts,启动自动迁移)
- 主题系统扩展:新增 sheetBg/modalBg/modalText/placeholder/iconDefault/danger 等 token
- 多组件深色模式适配:DownloadSheet/LivePlayer/NativeVideoPlayer/DownloadProgressBtn/CommentItem/LoginModal
- 搜索页增强:搜索建议 + 热搜榜(hooks/useSearch.ts + app/search.tsx)
- LoginModal 修复轮询竞态(cancelled flag + try-catch)
- 修复 downloads.tsx 冗余三元表达式
2026-03-26 01:16:20 +08:00
Developer
e3def7d01b fix: 修复小窗闭包过期、详情页 loading 卡死、视频播放器性能问题
- 小窗 PanResponder 用 storeRef 替代闭包捕获,修复 roomId/bvid 始终为初始值
- useLiveDetail 用 ref 比对替代 cancelled 标志,防止 fetch 被意外取消
- 详情页 useLayoutEffect 同步清除小窗,BigVideoCard 小窗活跃时跳过播放
- 视频播放器竖屏/全屏互斥渲染,减半解码器占用
- onProgress 节流 + 退出全屏强制恢复播放
2026-03-25 15:03:49 +08:00
Developer
f2fc4693a6 feat: 暗黑模式 + 节流模式
- settingsStore: 移除 coverQuality,新增 darkMode / trafficSaving 布尔字段(AsyncStorage 持久化)
- utils/theme.ts: 新建 useTheme() hook,返回浅色/深色颜色表
- settings.tsx: 新增外观(浅色/深色)和流量(标准/节流)选项,移除封面图清晰度
- BigVideoCard: 节流模式跳过预加载、禁止自动播放;封面低画质;支持暗黑配色
- useVideoDetail: 节流模式下默认 qn=16(360p)
- VideoCard / LiveCard: 移除 coverQuality 依赖,改用 trafficSaving;支持暗黑配色
- index.tsx: 导航栏/搜索栏/列表背景跟随主题
- search.tsx: 页面背景/输入框/文字跟随主题
- downloads.tsx: 顶栏/背景/文字跟随主题
- _layout.tsx: StatusBar 随暗黑模式切换 light/dark
2026-03-24 21:04:10 +08:00
Developer
462a090599 设置页面 2026-03-19 16:34:56 +08:00
Developer
ff659dcef7 优化 2026-03-14 18:25:13 +08:00
Developer
fb819798b1 1 2026-03-14 12:27:03 +08:00
Developer
e9b00d026f 1 2026-03-14 11:55:45 +08:00
Developer
a971a65f96 直播卡片 2026-03-13 21:52:09 +08:00
Developer
b447ec0c76 1 2026-03-13 00:30:07 +08:00
Developer
2e7578afde 热力图bug 2026-03-12 23:57:01 +08:00
Developer
4e8beae209 fix: add unmount cancellation guard, simplify keyExtractor, update spec 2026-03-11 14:48:19 +08:00
Developer
3f9e79496a refactor: deduplicate inline styles and document fetch effect dependency in BigVideoCard 2026-03-11 14:36:07 +08:00
Developer
d09c1d7346 fix: BigVideoCard stale closure, visibility guard, mediaContainer positioning 2026-03-11 14:32:40 +08:00
Developer
dfa8fc6dc8 fix: remove unused useRouter import from BigVideoCard 2026-03-11 14:28:34 +08:00
Developer
f10e8b92d0 feat: add BigVideoCard with muted autoplay at qn=16 2026-03-11 14:26:27 +08:00