fix: make progress bars initialise out of view

This commit is contained in:
Lei Nelissen
2024-07-25 14:06:06 +02:00
parent 83b890192e
commit 0b13e69854
4 changed files with 8 additions and 6 deletions

View File

@@ -119,8 +119,8 @@ function NowPlaying({ offset = 0, inset }: { offset?: number, inset?: boolean })
const navigation = useNavigation<NavigationProp>();
const bufferAnimation = useRef(new Animated.Value(0));
const progressAnimation = useRef(new Animated.Value(0));
const bufferAnimation = useRef(new Animated.Value(-1_000));
const progressAnimation = useRef(new Animated.Value(-1_000));
const openNowPlayingModal = useCallback(() => {
navigation.navigate('Player');