-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.js
More file actions
25 lines (22 loc) · 710 Bytes
/
index.js
File metadata and controls
25 lines (22 loc) · 710 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
25
/**
* @format
*/
// Import crypto polyfill before any other imports that might use crypto
import 'react-native-get-random-values';
import 'react-native-base64';
import { decode, encode } from 'base-64';
// Polyfill btoa and atob
if (!global.btoa) {
global.btoa = encode;
}
if (!global.atob) {
global.atob = decode;
}
import 'react-native-gesture-handler';
import { AppRegistry } from 'react-native';
import App from './App';
import { name as appName } from './app.json';
import * as TrackPlayer from 'react-native-track-player/lib/trackPlayer';
import { PlaybackService } from './service';
TrackPlayer.registerPlaybackService(() => PlaybackService);
AppRegistry.registerComponent(appName, () => App);