mirror of
https://github.com/Jellify-Music/App.git
synced 2025-12-21 10:39:59 -06:00
screens changes
This commit is contained in:
10
index.js
10
index.js
@@ -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);
|
||||
Reference in New Issue
Block a user