forked from 2025-Shifterz/Offnal-FE-Renew
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
41 lines (37 loc) · 1.04 KB
/
App.tsx
File metadata and controls
41 lines (37 loc) · 1.04 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/
import './global.css'
import { SafeAreaProvider } from 'react-native-safe-area-context'
import MyPage from './src/presentation/MyPage/screen/MyPage'
import TodoScreen from './src/presentation/Note/screens/TodoScreen'
import MemoScreen from './src/presentation/Note/screens/MemoScreen'
import { useEffect } from 'react'
import { initializeDataBaseTables } from './src/infrastructure/local/Initialization'
import { View } from 'react-native'
function App() {
useEffect(() => {
const init = async () => {
try {
await initializeDataBaseTables() // 앱 시작 시 테이블 생성
console.log('DB tables created!')
} catch (error) {
console.error('Error creating DB tables:', error)
}
}
init()
}, [])
return (
<SafeAreaProvider>
<View style={{ flex: 1 }}>
{/* <MyPage /> */}
<TodoScreen />
{/* <MemoScreen /> */}
</View>
</SafeAreaProvider>
)
}
export default App