mirror of
https://github.com/mudabbir-ahmad/Project-MAD-crudler.git
synced 2026-10-07 20:40:20 +00:00
Fix to app.js accidentally deleted it, used git history to recover it.
This commit is contained in:
1 parent
9af2d7379a
commit
7d872917fc
4 files changed
+38
-5
No files matched your search
@@ -0,0 +1,20 @@
|
|||||||
|
import { StatusBar } from "expo-status-bar";
|
||||||
|
import { StyleSheet, Text, View } from "react-native";
|
||||||
|
|
||||||
|
export default function App() {
|
||||||
|
return (
|
||||||
|
<View style={styles.container}>
|
||||||
|
<Text>Hello this is the app.js page</Text>
|
||||||
|
<StatusBar style="auto" />
|
||||||
|
</View>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
const styles = StyleSheet.create({
|
||||||
|
container: {
|
||||||
|
flex: 1,
|
||||||
|
backgroundColor: "#fff",
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
},
|
||||||
|
});
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { registerRootComponent } from "expo";
|
import { registerRootComponent } from "expo";
|
||||||
|
|
||||||
import App from "./src/components/Screens/ModuleListScreen.js";
|
import App from "./App";
|
||||||
|
|
||||||
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
|
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
|
||||||
// It also ensures that whether you load the app in Expo Go or in a native build,
|
// It also ensures that whether you load the app in Expo Go or in a native build,
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
export default function add() {
|
export default function add() {
|
||||||
|
// Initialisation ...............
|
||||||
|
// State ........................
|
||||||
|
// Handlers .....................
|
||||||
|
// View .........................
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
<Text>activity 1 complete on week 1 yay!</Text>
|
<Text>activity 1 complete on week 1 yay!</Text>
|
||||||
@@ -15,4 +20,3 @@ const styles = StyleSheet.create({
|
|||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -5,7 +5,7 @@ import { createNativeStackNavigator } from "@react-navigation/native-stack";
|
|||||||
|
|
||||||
const Stack = createNativeStackNavigator();
|
const Stack = createNativeStackNavigator();
|
||||||
|
|
||||||
export const App = () => {
|
export const ModuleListScreen = () => {
|
||||||
return (
|
return (
|
||||||
<NavigationContainer>
|
<NavigationContainer>
|
||||||
<Stack.Navigator initialRouteName="ModuleListScreen">
|
<Stack.Navigator initialRouteName="ModuleListScreen">
|
||||||
@@ -17,6 +17,15 @@ export const App = () => {
|
|||||||
</Stack.Navigator>
|
</Stack.Navigator>
|
||||||
</NavigationContainer>
|
</NavigationContainer>
|
||||||
);
|
);
|
||||||
};
|
}
|
||||||
|
|
||||||
export default App;
|
const styles = StyleSheet.create({
|
||||||
|
container: {
|
||||||
|
flex: 1,
|
||||||
|
backgroundColor: "#fff",
|
||||||
|
alignItems: "center",
|
||||||
|
justifyContent: "center",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
export default ModuleListScreen;
|
||||||
Reference in new issue
Block a user