From 46889119d4777db0a0210112bb2a4bbd7bc318e9 Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Wed, 12 Feb 2025 13:29:52 -0600 Subject: [PATCH] carplay stuff --- components/provider.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/provider.tsx b/components/provider.tsx index 987df584..fbb7d351 100644 --- a/components/provider.tsx +++ b/components/provider.tsx @@ -3,6 +3,7 @@ import { isUndefined } from "lodash"; import { createContext, ReactNode, SetStateAction, useContext, useEffect, useState } from "react"; import { CarPlay } from "react-native-carplay"; import CarPlayNavigation from "./CarPlay/Navigation"; +import CarPlayNowPlaying from "./CarPlay/NowPlaying"; interface JellifyContext { loggedIn: boolean; @@ -30,7 +31,8 @@ const JellifyContextInitializer = () => { if (loggedIn) { CarPlay.setRootTemplate(CarPlayNavigation, true); - // CarPlay.enableNowPlaying(true); // https://github.com/birkir/react-native-carplay/issues/185 + CarPlay.pushTemplate(CarPlayNowPlaying, true); + CarPlay.enableNowPlaying(true); // https://github.com/birkir/react-native-carplay/issues/185 } }