screens changes

This commit is contained in:
Violet Caulfield
2025-02-17 19:07:55 -06:00
parent 826f96ed94
commit 5d72f561f7
6 changed files with 118 additions and 138 deletions

View File

@@ -7,11 +7,17 @@ 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;
enableFreeze(true);
// 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)
AppRegistry.registerComponent('RNCarPlayScene', () => App);
// Register RNTP playback service for remote controls
TrackPlayer.registerPlaybackService(() => PlaybackService);