mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-28 14:08:38 -06:00
idk man
This commit is contained in:
@@ -2,6 +2,8 @@ import { CarPlay, TabBarTemplate } from 'react-native-carplay'
|
||||
import CarPlayHome from './Home'
|
||||
import CarPlayDiscover from './Discover'
|
||||
import uuid from 'react-native-uuid'
|
||||
import CarPlayNowPlaying from './NowPlaying'
|
||||
import { Platform } from 'react-native'
|
||||
|
||||
const CarPlayNavigation = () =>
|
||||
new TabBarTemplate({
|
||||
@@ -9,6 +11,9 @@ const CarPlayNavigation = () =>
|
||||
title: 'Tabs',
|
||||
templates: [CarPlayHome(), CarPlayDiscover()],
|
||||
onTemplateSelect(template, e) {},
|
||||
onDidAppear: () => {
|
||||
if (Platform.OS === 'ios') CarPlay.pushTemplate(CarPlayNowPlaying())
|
||||
},
|
||||
})
|
||||
|
||||
export default CarPlayNavigation
|
||||
|
||||
@@ -31,7 +31,9 @@ const JellifyContextInitializer = () => {
|
||||
console.debug(CarPlay.bridge)
|
||||
CarPlay.setRootTemplate(CarPlayNavigation())
|
||||
|
||||
if (Platform.OS === 'ios') CarPlay.enableNowPlaying(true) // https://github.com/birkir/react-native-carplay/issues/185
|
||||
if (Platform.OS === 'ios') {
|
||||
CarPlay.enableNowPlaying(true) // https://github.com/birkir/react-native-carplay/issues/185
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user