mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-21 13:30:11 -06:00
Offline Mode MVP (#272)
* OfflineMode * Template addition and Fixes * More Changes * More Changes * smol updates to provider run yarn format * update internet connection watcher colors and verbiage remove react native file access dependency * Offline changes * UI tweaks for offline indicator * get jest to pass --------- Co-authored-by: Ritesh Shukla <ritesh.shukla2@129net231.unica.it> Co-authored-by: Ritesh Shukla <ritesh.shukla2@M-LD4JMWLW26.local> Co-authored-by: Ritesh Shukla <75062358+riteshshukla04@users.noreply.github.com>
This commit is contained in:
7
App.tsx
7
App.tsx
@@ -15,6 +15,7 @@ import { createWorkletRuntime } from 'react-native-reanimated'
|
||||
import { SafeAreaProvider } from 'react-native-safe-area-context'
|
||||
import { NavigationContainer } from '@react-navigation/native'
|
||||
import { JellifyDarkTheme, JellifyLightTheme } from './components/theme'
|
||||
import { requestStoragePermission } from './helpers/permisson-helpers'
|
||||
|
||||
export const backgroundRuntime = createWorkletRuntime('background')
|
||||
|
||||
@@ -46,7 +47,13 @@ export default function App(): React.JSX.Element {
|
||||
)
|
||||
.finally(() => {
|
||||
setPlayerIsReady(true)
|
||||
requestStoragePermission()
|
||||
})
|
||||
const getActiveTrack = async () => {
|
||||
const track = await TrackPlayer.getActiveTrack()
|
||||
console.log('playerIsReady', track)
|
||||
}
|
||||
getActiveTrack()
|
||||
|
||||
return (
|
||||
<SafeAreaProvider>
|
||||
|
||||
Reference in New Issue
Block a user