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 } }