generated from GDG-on-Campus-SKHU/25-26-Assignment-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathApp.js
More file actions
38 lines (33 loc) · 860 Bytes
/
App.js
File metadata and controls
38 lines (33 loc) · 860 Bytes
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
import { StatusBar } from "expo-status-bar";
import Button, {ButtonTypes} from "./componets/Button";
import { StyleSheet, View } from "react-native";
import { useState } from "react";
function App() {
const [result, setResult] = useState(0);
return(
<View style={styles.container}>
<StatusBar style="auto" />
<Button
title="1"
onPress={() => console.log(1)}
buttonStyle={{width: 100, height: 100}}
buttonType={ButtonTypes.NUMBER}
/>
<Button
title="+"
onPress={() => console.log('+')}
buttonStyle={{width: 100, height: 200}}
buttonType={ButtonTypes.OPERATOR}
/>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor:"#fff",
alignItems: 'center',
justifyContent: 'center'
},
})
export default App;