mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-08 04:40:20 +00:00
added stack navigator
Created new branch, seems to be working fine.
This commit is contained in:
1 parent
8ad66ca2a7
commit
5732239c5b
8 files changed
+304
-22
No files matched your search
@@ -0,0 +1,18 @@
|
||||
export default function add() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text>activity 1 complete on week 1 yay!</Text>
|
||||
<StatusBar style="auto" />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: "#fff",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
export default function list() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text>activity 1 complete on week 1 yay!</Text>
|
||||
<StatusBar style="auto" />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: "#fff",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,17 @@
|
||||
export default function modify() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text>activity 1 complete on week 1 yay!</Text>
|
||||
<StatusBar style="auto" />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: "#fff",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
});
|
||||
@@ -0,0 +1,22 @@
|
||||
import { StatusBar } from "expo-status-bar";
|
||||
import { StyleSheet, Text, View } from "react-native";
|
||||
import { NavigationContainer } from "@react-navigation/native";
|
||||
import { createNativeStackNavigator } from "@react-navigation/native-stack";
|
||||
|
||||
const Stack = createNativeStackNavigator();
|
||||
|
||||
export const App = () => {
|
||||
return (
|
||||
<NavigationContainer>
|
||||
<Stack.Navigator initialRouteName="ModuleListScreen">
|
||||
<Stack.Screen
|
||||
name="ModuleListScreen"
|
||||
component={ModuleListScreen}
|
||||
options={{ title: "List Modules" }}
|
||||
/>
|
||||
</Stack.Navigator>
|
||||
</NavigationContainer>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
@@ -0,0 +1,17 @@
|
||||
export default function view() {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text>activity 1 complete on week 1 yay!</Text>
|
||||
<StatusBar style="auto" />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: "#fff",
|
||||
alignItems: "center",
|
||||
justifyContent: "center",
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user