We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa3818 commit 82de450Copy full SHA for 82de450
apps/mobile/app/(tabs)/index.tsx
@@ -2,7 +2,7 @@ import type { Track } from '@flow/core'
2
import { playerController, useDisplayTrack } from '@flow/player'
3
import { useTrackStore } from '@flow/store'
4
import { FlashList } from '@shopify/flash-list'
5
-import { useCallback, useRef } from 'react'
+import { useCallback, useEffect, useRef } from 'react'
6
import { StyleSheet, View } from 'react-native'
7
import { IconButton, Text } from 'react-native-paper'
8
import { MINI_HEIGHT } from '@/constants/Player'
@@ -33,6 +33,12 @@ export default function HomeScreen() {
33
}
34
}, [activeTrack, tracks])
35
36
+ useEffect(() => {
37
+ if (activeTrack) {
38
+ handleTargetPress()
39
+ }
40
+ }, [activeTrack, handleTargetPress])
41
+
42
return (
43
<>
44
{
0 commit comments