-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
29 lines (26 loc) · 884 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/// <reference types="nativewind/types" />
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import TrackPlayer from 'react-native-track-player';
import {Provider} from 'react-redux';
import store from './src/states/Store';
import playbackService from './src/trackPlayer/playbackService';
import RootStackNavigator from './src/routes/RootStackNavigator';
const App = () => {
// CookieManager.clearAll(true).then(res => {
// console.log("Debug: clear cash bro")
// })
TrackPlayer.registerPlaybackService(() => playbackService);
(async () => {
await TrackPlayer.setupPlayer();
await TrackPlayer.updateOptions({progressUpdateEventInterval: 1});
})();
return (
<Provider store={store}>
<NavigationContainer>
<RootStackNavigator />
</NavigationContainer>
</Provider>
);
};
export default App;