-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
29 lines (23 loc) · 860 Bytes
/
index.js
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
// Setup RN Gesture handler
import 'react-native-gesture-handler';
//Might help with crash https:/jpudysz/react-native-unistyles/issues/151
import 'react-native-unistyles';
import {setupGemius} from './app/util/useGemiusSetup';
setupGemius();
import {setupTrackPlayer} from './app/car/useTrackPlayerSetup';
// Setup CarPlay
if (Platform.OS === 'ios') {
require('./app/car/CarPlay');
}
import App from './App';
import {AppRegistry, Platform} from 'react-native';
import {name as appName} from './app.json';
import TrackPlayer from 'react-native-track-player';
import PlaybackService from './PlaybackService';
if (Platform.OS === 'android') {
AppRegistry.registerComponent(appName, () => App);
setupTrackPlayer();
} else {
AppRegistry.registerComponent(appName, () => App);
}
TrackPlayer.registerPlaybackService(() => PlaybackService);