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'; // 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);