mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
let's try no semicolons
This commit is contained in:
26
index.js
26
index.js
@@ -1,19 +1,19 @@
|
||||
import 'react-native-gesture-handler';
|
||||
import 'react-native-get-random-values';
|
||||
import 'react-native-gesture-handler'
|
||||
import 'react-native-get-random-values'
|
||||
|
||||
import { enableScreens } from 'react-native-screens';
|
||||
enableScreens();
|
||||
import { enableScreens } from 'react-native-screens'
|
||||
enableScreens()
|
||||
|
||||
import { AppRegistry } from 'react-native';
|
||||
import App from './App';
|
||||
import { name as appName } from './app.json';
|
||||
import TrackPlayer, { Capability } from 'react-native-track-player';
|
||||
import { AppRegistry } from 'react-native'
|
||||
import App from './App'
|
||||
import { name as appName } from './app.json'
|
||||
import TrackPlayer, { Capability } from 'react-native-track-player'
|
||||
|
||||
AppRegistry.registerComponent(appName, () => App);
|
||||
TrackPlayer.registerPlaybackService(() => require('./src/playback/service'));
|
||||
AppRegistry.registerComponent(appName, () => App)
|
||||
TrackPlayer.registerPlaybackService(() => require('./src/playback/service'))
|
||||
|
||||
async function start() {
|
||||
await TrackPlayer.setupPlayer();
|
||||
await TrackPlayer.setupPlayer()
|
||||
await TrackPlayer.updateOptions({
|
||||
capabilities: [
|
||||
Capability.Play,
|
||||
@@ -23,6 +23,6 @@ async function start() {
|
||||
Capability.SkipToPrevious,
|
||||
],
|
||||
compactCapabilities: [Capability.Play, Capability.Pause, Capability.SkipToNext, Capability.SkipToPrevious],
|
||||
});
|
||||
})
|
||||
}
|
||||
start();
|
||||
start()
|
||||
|
||||
Reference in New Issue
Block a user