Files
jellyfin-audio-player/index.ts

18 lines
664 B
TypeScript
Raw Normal View History

// import React from 'react';
// // if (process.env.NODE_ENV === 'development') {
// // const whyDidYouRender = require('@welldone-software/why-did-you-render');
// // whyDidYouRender(React, {
// // trackAllPureComponents: true,
// // });
// // }
2020-06-16 17:51:51 +02:00
import 'react-native-gesture-handler';
import { AppRegistry } from 'react-native';
2020-06-16 21:41:02 +02:00
import TrackPlayer from 'react-native-track-player';
2020-06-16 17:51:51 +02:00
import App from './src/components/App';
import { name as appName } from './app.json';
2020-06-16 21:41:02 +02:00
import PlaybackService from './src/utility/PlaybackService';
2020-06-16 17:51:51 +02:00
AppRegistry.registerComponent(appName, () => App);
2020-06-16 21:41:02 +02:00
TrackPlayer.registerPlaybackService(() => PlaybackService);