-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
71 lines (66 loc) · 1.47 KB
/
App.js
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
import { StatusBar } from 'expo-status-bar';
import React, { useEffect, useState } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import axios from 'axios';
import Select from './Select'
export default function App() {
const [data, setData] = useState(null);
const options = {
method: 'GET',
headers: {
'Content-Type': 'application/json; charset=utf-8'
}
}
// useEffect(() => {
// const url = "https://ddt6tjz9bd.execute-api.ap-northeast-2.amazonaws.com/dev/";
// axios
// .get(url)
// .then((response) => {
// // API 응답 처리
// setData(response.data);
// })
// .catch((error) => {
// console.error("API 호출 중 에러:", error);
// });
// }, []);
return (
<View style={styles.container}>
<StatusBar style="auto" />
<Select></Select>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#ffffff',
alignItems: 'center',
justifyContent: 'center',
paddingHorizontal: 20,
},
header: {
fontSize: 24,
fontWeight: 'bold',
marginBottom: 20,
},
dataContainer: {
borderWidth: 1,
borderColor: '#dddddd',
borderRadius: 5,
padding: 10,
},
dataItem: {
marginBottom: 10,
},
dataClass: {
fontSize: 16,
fontWeight: 'bold',
},
dataResidue: {
fontSize: 14,
color: 'green',
},
dataNum: {
fontSize: 14,
},
});