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:
Violet Caulfield
2025-04-22 12:07:55 -05:00
committed by GitHub
parent 1c61a752a0
commit a08e66546c
32 changed files with 12775 additions and 234 deletions

View File

@@ -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>