Repository navigation
Expand file tree
/
Copy pathApp.js
More file actions
73 lines (50 loc) · 1.69 KB
/
Copy pathApp.js
File metadata and controls
73 lines (50 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// In App.js in a new project
import * as React from 'react';
import { View, Text } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HomeScreen from './src/screens/Home';
import LoginScreen from './src/screens/Login';
const Stack = createNativeStackNavigator();
function App() {
return (
<NavigationContainer>
<Stack.Navigator>
<Stack.Screen name="Login" component={LoginScreen} />
<Stack.Screen name="Home" component={HomeScreen} />
</Stack.Navigator>
</NavigationContainer>
);
}
export default App;
// import { StatusBar } from 'expo-status-bar';
// import React, {useState} from 'react';
// import { StyleSheet, Text, View, Image, SafeAreaView, StatusBar, Platform, Alert, Button } from 'react-native';
// export default function App() {
// return (
// <SafeAreaView style={styles.container}>
// <Text>Welcome to Applaudit!</Text>
// <Image source={{
// width: 200,
// height: 300,
// uri: "https://picsum.photos/200/300"}}/>
// <Button title="click me" onPress={()=>Alert.alert("you have clicked btn", "there is no more to do")}/>
// <StatusBar style="auto" />
// </SafeAreaView>
// );
// }
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// paddingTop: Platform.OS === 'android'? StatusBar.currentHeight :0,
// backgroundColor: '#fff',
// alignItems: 'center',
// justifyContent: 'center',
// },
// Imcontainer: {
// flex: 1,
// backgroundColor: '#bbb',
// alignItems: 'center',
// justifyContent: 'center',
// },
// });