mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2026-01-06 05:40:26 -06:00
fix ios
This commit is contained in:
1
App.tsx
1
App.tsx
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user