-
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.
- Loading branch information
1 parent
ad3eb62
commit 136e41f
Showing
42 changed files
with
17,467 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,118 +1,80 @@ | ||
/** | ||
* Sample React Native App | ||
* https://github.com/facebook/react-native | ||
* | ||
* @format | ||
*/ | ||
import React, { Component, useEffect } from "react"; | ||
import { View, Text, StyleSheet, Image } from "react-native"; | ||
import { global_styles } from './src/style/globalstyle'; | ||
//import DinningTable from "./screens/DinningTable"; | ||
//import Pinauthentication from "./screens/Pinauthentication"; | ||
//import AppNavigator from "./navigator/app.navigator"; | ||
import Menu from "./src/screens/Menu"; | ||
import SplashScreen from 'react-native-splash-screen'; | ||
import { NavigationContainer } from '@react-navigation/native'; | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
//import TabNavigator from "./src/navigator/TabNavigator"; | ||
import DetailsScreen from './src/screens/DetailsScreen'; | ||
import TabNavigator from "./src/navigator/TabNavigator"; | ||
import MenuData from "./src/data/MenuData"; | ||
|
||
import React from 'react'; | ||
import type {PropsWithChildren} from 'react'; | ||
import { | ||
SafeAreaView, | ||
ScrollView, | ||
StatusBar, | ||
StyleSheet, | ||
Text, | ||
useColorScheme, | ||
View, | ||
} from 'react-native'; | ||
|
||
import { | ||
Colors, | ||
DebugInstructions, | ||
Header, | ||
LearnMoreLinks, | ||
ReloadInstructions, | ||
} from 'react-native/Libraries/NewAppScreen'; | ||
/*const Stack = createNativeStackNavigator(); | ||
export default class App extends Component { | ||
state: {}; | ||
constructor(props: any) { | ||
super(props); | ||
this.state = { | ||
type SectionProps = PropsWithChildren<{ | ||
title: string; | ||
}>; | ||
}; | ||
} | ||
render() { | ||
return ( | ||
<NavigationContainer> | ||
<Stack.Navigator screenOptions={{ headerShown: false }}> | ||
<Stack.Screen | ||
name="Tab" | ||
component={TabNavigator} | ||
options={{ animation: 'slide_from_bottom' }}> | ||
</Stack.Screen> | ||
<Stack.Screen | ||
name="Details" | ||
component={DetailsScreen} | ||
options={{ animation: 'slide_from_bottom' }}> | ||
</Stack.Screen> | ||
</Stack.Navigator> | ||
</NavigationContainer> | ||
); | ||
} | ||
}*/ | ||
|
||
function Section({children, title}: SectionProps): React.JSX.Element { | ||
const isDarkMode = useColorScheme() === 'dark'; | ||
/*const App = () => { | ||
console.log("Globale data",MenuData[0].subcategories[0].items); | ||
return ( | ||
<View style={styles.sectionContainer}> | ||
<Text | ||
style={[ | ||
styles.sectionTitle, | ||
{ | ||
color: isDarkMode ? Colors.white : Colors.black, | ||
}, | ||
]}> | ||
{title} | ||
</Text> | ||
<Text | ||
style={[ | ||
styles.sectionDescription, | ||
{ | ||
color: isDarkMode ? Colors.light : Colors.dark, | ||
}, | ||
]}> | ||
{children} | ||
</Text> | ||
<View style={global_styles.content}> | ||
<Menu /> | ||
</View> | ||
); | ||
} | ||
}; | ||
function App(): React.JSX.Element { | ||
const isDarkMode = useColorScheme() === 'dark'; | ||
|
||
const backgroundStyle = { | ||
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, | ||
}; | ||
export default App;*/ | ||
const Stack = createNativeStackNavigator(); | ||
|
||
const App = () => { | ||
/*useEffect(() => { | ||
SplashScreen.hide(); | ||
}, []);*/ | ||
return ( | ||
<SafeAreaView style={backgroundStyle}> | ||
<StatusBar | ||
barStyle={isDarkMode ? 'light-content' : 'dark-content'} | ||
backgroundColor={backgroundStyle.backgroundColor} | ||
/> | ||
<ScrollView | ||
contentInsetAdjustmentBehavior="automatic" | ||
style={backgroundStyle}> | ||
<Header /> | ||
<View | ||
style={{ | ||
backgroundColor: isDarkMode ? Colors.black : Colors.white, | ||
}}> | ||
<Section title="Step One"> | ||
Edit <Text style={styles.highlight}>App.tsx</Text> to change this | ||
screen and then come back to see your edits. | ||
</Section> | ||
<Section title="See Your Changes"> | ||
<ReloadInstructions /> | ||
</Section> | ||
<Section title="Debug"> | ||
<DebugInstructions /> | ||
</Section> | ||
<Section title="Learn More"> | ||
Read the docs to discover what to do next: | ||
</Section> | ||
<LearnMoreLinks /> | ||
</View> | ||
</ScrollView> | ||
</SafeAreaView> | ||
<NavigationContainer> | ||
<Stack.Navigator screenOptions={{ headerShown: false }}> | ||
<Stack.Screen | ||
name="Tab" | ||
component={TabNavigator} | ||
options={{animation: 'slide_from_bottom'}}> | ||
</Stack.Screen> | ||
<Stack.Screen | ||
name="Details" | ||
component={DetailsScreen} | ||
options={{ animation: 'slide_from_bottom' }}> | ||
</Stack.Screen> | ||
</Stack.Navigator> | ||
</NavigationContainer> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
sectionContainer: { | ||
marginTop: 32, | ||
paddingHorizontal: 24, | ||
}, | ||
sectionTitle: { | ||
fontSize: 24, | ||
fontWeight: '600', | ||
}, | ||
sectionDescription: { | ||
marginTop: 8, | ||
fontSize: 18, | ||
fontWeight: '400', | ||
}, | ||
highlight: { | ||
fontWeight: '700', | ||
}, | ||
}); | ||
}; | ||
|
||
export default App; | ||
export default App; |
Binary file not shown.
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.
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,21 @@ | ||
{ | ||
"migIndex": 1, | ||
"data": [ | ||
{ | ||
"path": "src/assets/fonts/app_icons.ttf", | ||
"sha1": "18e5fe2f93c853bbb495975f04df56438d595de5" | ||
}, | ||
{ | ||
"path": "src/assets/images/nav_icons/humberger.png", | ||
"sha1": "6d9e78516eb0ac37ce0284a0fbaf086a1ef02292" | ||
}, | ||
{ | ||
"path": "src/assets/images/salade/salade.jpg", | ||
"sha1": "4dfaa750f73b841b5584c1eff2d0c44292fcbe39" | ||
}, | ||
{ | ||
"path": "src/assets/images/salade/saladfile.png", | ||
"sha1": "f701b92eb6f2c55a4a7a4d296a69dd15ebc654db" | ||
} | ||
] | ||
} |
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,21 @@ | ||
{ | ||
"migIndex": 1, | ||
"data": [ | ||
{ | ||
"path": "src/assets/fonts/app_icons.ttf", | ||
"sha1": "18e5fe2f93c853bbb495975f04df56438d595de5" | ||
}, | ||
{ | ||
"path": "src/assets/images/nav_icons/humberger.png", | ||
"sha1": "6d9e78516eb0ac37ce0284a0fbaf086a1ef02292" | ||
}, | ||
{ | ||
"path": "src/assets/images/salade/salade.jpg", | ||
"sha1": "4dfaa750f73b841b5584c1eff2d0c44292fcbe39" | ||
}, | ||
{ | ||
"path": "src/assets/images/salade/saladfile.png", | ||
"sha1": "f701b92eb6f2c55a4a7a4d296a69dd15ebc654db" | ||
} | ||
] | ||
} |
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
Oops, something went wrong.