From 9fa0ead38e6388568f362c8dc9a9ef7d2e8d1f22 Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Sat, 29 Mar 2025 11:31:18 -0500 Subject: [PATCH] plz --- components/provider.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/provider.tsx b/components/provider.tsx index ff256480..7ac76b62 100644 --- a/components/provider.tsx +++ b/components/provider.tsx @@ -6,8 +6,8 @@ import { CarPlayInterface, NowPlayingTemplate, TabBarTemplate } from "react-nati // 'react-native-carplay' has also been disabled for android builds in react-native.config.js const CarPlay = Platform.OS === 'ios' ? require('react-native-carplay').CarPlay as CarPlayInterface : null; -const CarPlayNavigation : TabBarTemplate = Platform.OS === 'ios' ? require('./CarPlay/Navigation').CarPlayNavigation : null; -const CarPlayNowPlaying : NowPlayingTemplate = Platform.OS === 'ios' ? require('./CarPlay/NowPlaying').CarPlayNowPlaying : null; +const CarPlayNavigation : TabBarTemplate = CarPlay ? require('./CarPlay/Navigation') : null; +const CarPlayNowPlaying : NowPlayingTemplate = CarPlay ? require('./CarPlay/NowPlaying') : null; interface JellifyContext { loggedIn: boolean;