-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
33 lines (31 loc) · 881 Bytes
/
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
import React, { StrictMode } from 'react'
import { View, Text } from 'react-native'
import ErrorBoundary from 'react-native-error-boundary'
import AuthProvider from './src/context/AuthProvider'
import MealProvider from './src/context/MealProvider'
import SettingsProvider from './src/context/SettingsProvider'
import SafeArea from './src/layout/SafeArea'
import Main from './src/Main'
const Dummy = () => {
return (
<View>
<Text>에러</Text>
</View>
)
}
export default function App() {
return (
// TODO: strictMode 추가시 에러나는 이유를 모르겠다.
<SafeArea>
<ErrorBoundary FallbackComponent={Dummy}>
<SettingsProvider>
<MealProvider>
<AuthProvider>
<Main />
</AuthProvider>
</MealProvider>
</SettingsProvider>
</ErrorBoundary>
</SafeArea>
)
}