big ol' impl of zustand for settings/family states

still need to move track player state over for non-react access to that
This commit is contained in:
austinried
2021-08-01 16:30:28 +09:00
parent ebc31e6d05
commit 8b17ebe9c2
26 changed files with 809 additions and 779 deletions

View File

@@ -1,3 +1,4 @@
import { useCoverArtUri } from '@app/hooks/music'
import { Song } from '@app/models/music'
import PromiseQueue from '@app/util/PromiseQueue'
import equal from 'fast-deep-equal'
@@ -7,7 +8,6 @@ import { atomWithStore } from 'jotai/zustand'
import { useCallback, useEffect } from 'react'
import TrackPlayer, { State, Track } from 'react-native-track-player'
import create from 'zustand'
import { useCoverArtUri } from './music'
type TrackExt = Track & {
id: string