type fixes

This commit is contained in:
tapframe 2026-01-22 12:30:04 +05:30
parent fefb0cda01
commit 181de15b93
4 changed files with 8 additions and 9 deletions

View file

@ -207,7 +207,7 @@ const CatalogSection = ({ catalog }: CatalogSectionProps) => {
horizontal
showsHorizontalScrollIndicator={false}
scrollEventThrottle={16}
decelerationRate="fast"
decelerationRate="normal"
scrollEnabled={true}
nestedScrollEnabled={true}
contentContainerStyle={StyleSheet.flatten([

View file

@ -149,18 +149,18 @@ const AndroidVideoPlayer: React.FC = () => {
// Track previous video session to reset subtitle offset only when video actually changes
const previousVideoRef = useRef<{ uri?: string; episodeId?: string }>({});
// Reset subtitle offset when starting a new video session
useEffect(() => {
const currentVideo = { uri, episodeId };
const previousVideo = previousVideoRef.current;
// Only reset if this is actually a new video (uri or episodeId changed)
if (previousVideo.uri !== undefined &&
(previousVideo.uri !== currentVideo.uri || previousVideo.episodeId !== currentVideo.episodeId)) {
if (previousVideo.uri !== undefined &&
(previousVideo.uri !== currentVideo.uri || previousVideo.episodeId !== currentVideo.episodeId)) {
setSubtitleOffsetSec(0);
}
// Update the ref for next comparison
previousVideoRef.current = currentVideo;
// eslint-disable-next-line react-hooks/exhaustive-deps
@ -874,7 +874,6 @@ const AndroidVideoPlayer: React.FC = () => {
brightness={brightness}
controlsTimeout={controlsTimeout}
resizeMode={playerState.resizeMode}
resizeMode={playerState.resizeMode}
/>
<PlayerControls

View file

@ -7,7 +7,7 @@ import { Dimensions, Platform } from 'react-native';
// Use only resize modes supported by all player backends
// (not all players support 'stretch' or 'none')
export type PlayerResizeMode = 'contain' | 'cover';
export type PlayerResizeMode = 'contain' | 'cover' | 'stretch';
export const usePlayerState = () => {
// Playback State

View file

@ -1,7 +1,7 @@
// Single source of truth for the app version displayed in Settings
// Update this when bumping app version
export const APP_VERSION = '1.3.5';
export const APP_VERSION = '1.3.6';
export function getDisplayedAppVersion(): string {
return APP_VERSION;