Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored and gitbutler-client committed Feb 23, 2024
1 parent 888a4d6 commit f7b29d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
24 changes: 2 additions & 22 deletions native_gg/app/RootScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import { useNavigation } from "@react-navigation/native";
import { NavigationProp, useNavigation } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import { Button, Text, View } from "react-native";
import { useGlobalStateContext } from "./state/GlobalState";
import Login from "./screens/Login";
import { useEffect } from "react";
import AuthService from "./authentication/AuthService";

// biome-ignore lint/suspicious/noExplicitAny: <explanation>
function HomeScreen({ navigation }: { navigation: any }) {
function HomeScreen({ navigation }: { navigation: NavigationProp<ReactNavigation.RootParamList> }) {
return (
<View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
<Text style={{ fontSize: 30 }}>This is the home screen!</Text>
Expand All @@ -16,24 +15,6 @@ function HomeScreen({ navigation }: { navigation: any }) {
);
}

function DetailsScreen() {
return (
<View>
<Text>Details</Text>
</View>
);
}

// biome-ignore lint/suspicious/noExplicitAny: <explanation>
// function ModalScreen({ navigation }: { navigation: any }) {
// return (
// <View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
// <Text style={{ fontSize: 30 }}>This is a modal!</Text>
// <Button onPress={() => navigation.goBack()} title="Dismiss" />
// </View>
// );
// }

const RootStack = createStackNavigator();

export default function RootScreen() {
Expand All @@ -51,7 +32,6 @@ export default function RootScreen() {
<RootStack.Navigator>
<RootStack.Group>
<RootStack.Screen name="Home" component={HomeScreen} />
<RootStack.Screen name="Details" component={DetailsScreen} />
</RootStack.Group>
<RootStack.Group screenOptions={{ presentation: "modal", gestureEnabled: false, headerShown: false }}>
<RootStack.Screen name="Login" component={Login} />
Expand Down
2 changes: 1 addition & 1 deletion native_gg/app/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'react-native-gesture-handler';
import "react-native-gesture-handler"; // Avoid crash in production https://reactnavigation.org/docs/stack-navigator/#installation
import * as SplashScreen from "expo-splash-screen";
SplashScreen.preventAutoHideAsync();

Expand Down

0 comments on commit f7b29d2

Please sign in to comment.