mirror of
https://github.com/Jellify-Music/App.git
synced 2026-05-03 00:59:48 -05:00
fix tab bar items
This commit is contained in:
@@ -5,6 +5,7 @@ const CarPlayDiscover = () =>
|
||||
new ListTemplate({
|
||||
id: uuid.v4(),
|
||||
tabTitle: 'Discover',
|
||||
tabSystemImageName: 'globe',
|
||||
})
|
||||
|
||||
export default CarPlayDiscover
|
||||
|
||||
@@ -12,6 +12,7 @@ const CarPlayHome = () =>
|
||||
id: uuid.v4(),
|
||||
title: 'Home',
|
||||
tabTitle: 'Home',
|
||||
tabSystemImageName: 'music.house.fill',
|
||||
sections: [
|
||||
{
|
||||
header: `Hi ${Client.user?.name ?? 'there'}`,
|
||||
|
||||
@@ -28,9 +28,12 @@ const JellifyContextInitializer = () => {
|
||||
setCarPlayConnected(true)
|
||||
|
||||
if (loggedIn) {
|
||||
console.debug(CarPlay.bridge)
|
||||
CarPlay.setRootTemplate(CarPlayNavigation())
|
||||
CarPlay.pushTemplate(CarPlayNowPlaying())
|
||||
|
||||
if (Platform.OS === 'ios') {
|
||||
CarPlay.enableNowPlaying(true) // https://github.com/birkir/react-native-carplay/issues/185
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user