Files
Jellify/index.js
Violet Caulfield 5d72f561f7 screens changes
2025-02-17 19:07:55 -06:00

23 lines
798 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();
// TODO: I don't think this is needed with React Navigation 6+
enableScreens();
AppRegistry.registerComponent(appName, () => App);
AppRegistry.registerComponent('RNCarPlayScene', () => App);
// Register RNTP playback service for remote controls
TrackPlayer.registerPlaybackService(() => PlaybackService);