-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into katynguyen/ocf-19-lo-fi-tree-search-screen
- Loading branch information
Showing
95 changed files
with
3,501 additions
and
16,069 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,3 +38,8 @@ yarn-error.* | |
|
||
# typescript | ||
*.tsbuildinfo | ||
|
||
# Supabase | ||
src/supabase/.branches | ||
src/supabase/.temp | ||
src/supabase/.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,34 @@ | ||
import * as React from 'react'; | ||
import { DefaultTheme, NavigationContainer } from '@react-navigation/native'; | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
import QRCodeScanner from '@/components/QRCodeScanner/QRCodeScanner'; | ||
import HomeScreen from '@/screens/Home/Home'; | ||
import LoginScreen from '@/screens/login/LoginScreen'; | ||
import TreeInfoPage from '@/screens/TreeInfo/TreeInfo'; | ||
import TreeSearch from '@/screens/TreeSearch/TreeSearch'; | ||
import { LoginStackParamList, RootStackParamList } from '@/types/navigation'; | ||
import React from 'react'; | ||
import { Text } from 'react-native'; | ||
import { GestureHandlerRootView } from 'react-native-gesture-handler'; | ||
import { useFonts } from 'expo-font'; | ||
import { DMSans_400Regular, DMSans_700Bold } from '@expo-google-fonts/dm-sans'; | ||
import { DefaultTheme } from '@react-navigation/native'; | ||
import { AuthContextProvider } from '@/context/AuthContext'; | ||
import AppNavigator from '@/navigation/AppNavigator'; | ||
import colors from '@/styles/colors'; | ||
|
||
const RootStack = createNativeStackNavigator<RootStackParamList>(); | ||
const LoginStack = createNativeStackNavigator<LoginStackParamList>(); | ||
DefaultTheme.colors.background = colors.white; | ||
|
||
DefaultTheme.colors.background = '#FFFFFF'; | ||
export default function App() { | ||
const [fontsLoaded] = useFonts({ | ||
DMSans_400Regular, | ||
DMSans_700Bold, | ||
}); | ||
|
||
const App = () => { | ||
return ( | ||
<NavigationContainer theme={DefaultTheme}> | ||
{/* <LoginStack.Navigator initialRouteName="Login"> | ||
<LoginStack.Screen | ||
name="Login" | ||
component={LoginScreen} | ||
options={{ headerShown: false }} | ||
/> | ||
</LoginStack.Navigator> */} | ||
if (!fontsLoaded) { | ||
return null; | ||
} | ||
|
||
<RootStack.Navigator initialRouteName="TreeSearch"> | ||
<RootStack.Screen | ||
name="Home" | ||
component={HomeScreen} | ||
options={{ headerShown: false }} | ||
/> | ||
<RootStack.Screen | ||
name="Scanner" | ||
component={QRCodeScanner} | ||
options={{ headerShown: false }} | ||
/> | ||
<RootStack.Screen | ||
name="TreeInfoPage" | ||
component={TreeInfoPage} | ||
options={{ headerShown: false }} | ||
/> | ||
<RootStack.Screen | ||
name="TreeSearch" | ||
component={TreeSearch} | ||
options={{ headerShown: false }} | ||
/> | ||
</RootStack.Navigator> | ||
</NavigationContainer> | ||
); | ||
}; | ||
const defaultFontFamily = 'DMSans_400Regular'; | ||
(Text as any).defaultProps = (Text as any).defaultProps || {}; | ||
(Text as any).defaultProps.style = { fontFamily: defaultFontFamily }; | ||
|
||
export default App; | ||
return ( | ||
<GestureHandlerRootView style={{ flex: 1 }}> | ||
<AuthContextProvider> | ||
<AppNavigator /> | ||
</AuthContextProvider> | ||
</GestureHandlerRootView> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { registerRootComponent } from 'expo'; | ||
import App from './App'; | ||
|
||
registerRootComponent(App); |
Oops, something went wrong.