This commit is contained in:
Violet Caulfield
2025-03-29 09:29:44 -05:00
parent 4f48c6e475
commit b1153e4dc4
2 changed files with 1 additions and 2 deletions

View File

@@ -26,7 +26,6 @@ export default function App(): React.JSX.Element {
TrackPlayer.setupPlayer({
autoHandleInterruptions: true,
maxCacheSize: 1000 * 100, // 100MB, TODO make this adjustable
iosCategory: IOSCategory.Playback,
iosCategoryOptions: [
IOSCategoryOptions.AllowAirPlay,

View File

@@ -5,7 +5,7 @@ import { Platform } from 'react-native'
import { CarPlayInterface, NowPlayingTemplate, TabBarTemplate } from "react-native-carplay";
// 'react-native-carplay' has also been disabled for android builds in react-native.config.js
const CarPlay = Platform.OS === 'ios' ? require('react-native-carplay') : null;
const CarPlay = Platform.OS === 'ios' ? require('react-native-carplay').CarPlay as CarPlayInterface : null;
const CarPlayNavigation : TabBarTemplate = CarPlay ? require('./CarPlay/Navigation').CarPlayNavigation : null;
const CarPlayNowPlaying : NowPlayingTemplate = CarPlay ? require('./CarPlay/NowPlaying').CarPlayNowPlaying : null;