-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
24 lines (21 loc) · 699 Bytes
/
index.js
File metadata and controls
24 lines (21 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
* @format
*/
import {QueryClientProvider} from '@tanstack/react-query';
import {AppRegistry} from 'react-native';
import TrackPlayer from 'react-native-track-player';
import App from './App';
import {name as appName} from './app.json';
import { PlaybackService } from 'services/TrackPlayerService/TrackPlayerService.ts';
import queryClient from 'services/client/QueryClient';
import Toast from 'react-native-toast-message';
const HiBeatApp = () => {
return (
<QueryClientProvider client={queryClient}>
<App />
<Toast />
</QueryClientProvider>
);
};
AppRegistry.registerComponent(appName, () => HiBeatApp);
TrackPlayer.registerPlaybackService(() => PlaybackService);