File tree Expand file tree Collapse file tree 3 files changed +22
-7
lines changed
hackathon/ui-tier-list/template Expand file tree Collapse file tree 3 files changed +22
-7
lines changed Original file line number Diff line number Diff line change
1
+ import { SafeAreaProvider } from "react-native-safe-area-context" ;
1
2
import { StatusBar } from "expo-status-bar" ;
2
- import { StyleSheet , Text , View } from "react-native" ;
3
+ import { StyleSheet , View } from "react-native" ;
4
+
5
+ import { LoginScreen } from "./LoginScreen" ;
3
6
4
7
// eslint-disable-next-line import/no-default-export
5
8
export default function App ( ) {
6
9
return (
7
- < View style = { styles . container } >
8
- < Text > Open up App.tsx to start working on your app!</ Text >
10
+ < SafeAreaProvider >
9
11
< StatusBar style = "auto" />
10
- </ View >
12
+ < View style = { styles . container } >
13
+ < LoginScreen />
14
+ </ View >
15
+ </ SafeAreaProvider >
11
16
) ;
12
17
}
13
18
14
19
const styles = StyleSheet . create ( {
15
20
container : {
16
21
flex : 1 ,
17
- backgroundColor : "#fff" ,
18
- alignItems : "center" ,
19
- justifyContent : "center" ,
20
22
} ,
21
23
} ) ;
Original file line number Diff line number Diff line change
1
+ import { View , Text } from "react-native" ;
2
+ import React from "react" ;
3
+
4
+ interface Props { }
5
+
6
+ export const LoginScreen = ( props : Props ) => {
7
+ return (
8
+ < View style = { { alignItems : "center" , flex : 1 , justifyContent : "center" } } >
9
+ < Text > LoginScreen</ Text >
10
+ </ View >
11
+ ) ;
12
+ } ;
Original file line number Diff line number Diff line change 14
14
"react" : " 18.1.0" ,
15
15
"react-dom" : " 18.1.0" ,
16
16
"react-native" : " 0.70.5" ,
17
+ "react-native-safe-area-context" : " ^4.4.1" ,
17
18
"react-native-web" : " ~0.18.9"
18
19
},
19
20
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments