birkir / react-native-carplay

CarPlay with React Native
https://birkir.dev/react-native-carplay/
MIT License
669 stars 111 forks source link

Improvements #48

Closed brightsider closed 3 years ago

brightsider commented 3 years ago

Improve Base Template, ListTemplate, TabBarTemplate Add Now Playing

birkir commented 3 years ago

Is the Now Playing template working for you?

brightsider commented 3 years ago

Yes To use it enable this template by CarPlay.enableNowPlaying(true);

Then you can use it like in this example:

const nowPlaying = new NowPlayingTemplate({
  albumArtistButton: false,
  upNextButton: false,
});
CarPlay.pushTemplate(nowPlaying, true)
kkoscielniak commented 3 years ago

@brightsider you probably could update the README.md as well

birkir commented 3 years ago

Awesome, LGTM.

ForrestDWS commented 3 years ago

@brightsider Cool! Excited to see this in the library. Is this implemented in the example project?

brightsider commented 3 years ago

@ForrestDWS sorry, I have no time for this

ForrestDWS commented 3 years ago

@brightsider no worries. I really appreciate you making this PR. I'd really like to play with this. I've been trying to call CarPlay.enableNowPlaying(true); but my builds error out telling me that it isn't a valid function. Without it, I'm told that I cannot push CPNowPlayingTemplate in on its own. Can I take a look at what you are enabling for your .entitlements file? Ive got a screenshot of that error here in this thread https://github.com/birkir/react-native-carplay/issues/43