mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-25 04:28:40 -06:00
What about this?
This commit is contained in:
@@ -12,7 +12,8 @@ import { PortalProvider } from "tamagui";
|
||||
import Client from "../api/client";
|
||||
import { JellifyProvider, useJellifyContext } from "./provider";
|
||||
import { CarPlay } from "react-native-carplay"
|
||||
import JellifyCarplay from "./carplay";
|
||||
import { createStackNavigator } from "@react-navigation/stack";
|
||||
import { NowPlaying } from "./CarPlay/NowPlaying";
|
||||
|
||||
export default function Jellify(): React.JSX.Element {
|
||||
|
||||
@@ -25,6 +26,8 @@ export default function Jellify(): React.JSX.Element {
|
||||
);
|
||||
}
|
||||
|
||||
const CarPlayStack = createStackNavigator();
|
||||
|
||||
function App(): React.JSX.Element {
|
||||
|
||||
const isDarkMode = useColorScheme() === "dark";
|
||||
@@ -60,8 +63,10 @@ function App(): React.JSX.Element {
|
||||
return carPlayConnected ? (
|
||||
<NavigationContainer>
|
||||
{ loggedIn ? (
|
||||
<></>
|
||||
) : (
|
||||
<CarPlayStack.Navigator initialRouteName="NowPlaying">
|
||||
<CarPlayStack.Screen name="NowPlaying" component={NowPlaying} />
|
||||
</CarPlayStack.Navigator>
|
||||
) : (
|
||||
<View>
|
||||
<Text>Please login in the app before using CarPlay</Text>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user