Files
Jellify/index.js

20 lines
720 B
JavaScript

import 'react-native-gesture-handler';
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import { PlaybackService } from './player/service'
import TrackPlayer from 'react-native-track-player';
import Client from './api/client';
import { enableFreeze, enableScreens } from "react-native-screens";
// Initialize API client instance
Client.instance;
// Enable React Navigation freeze for detaching inactive screens
// enableFreeze();
AppRegistry.registerComponent(appName, () => App);
AppRegistry.registerComponent('RNCarPlayScene', () => App);
// Register RNTP playback service for remote controls
TrackPlayer.registerPlaybackService(() => PlaybackService);