-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
27 lines (23 loc) · 800 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
/* eslint-disable global-require */
import * as React from 'react'
import AppProvider from 'containers/App/AppContext'
import App from 'containers/App'
import AppStack from 'navigation/stacks'
import withStorybook from './src/hocs/withStorybook'
const fonts = {
'SFProDisplay-Bold': require('./assets/fonts/SF-Pro-Display-Bold.otf'),
'SFProDisplay-Semibold': require('./assets/fonts/SF-Pro-Display-Semibold.otf'),
'SFProDisplay-Regular': require('./assets/fonts/SF-Pro-Display-Regular.otf'),
'SFProDisplay-Medium': require('./assets/fonts/SF-Pro-Display-Medium.otf'),
}
const assets = []
function Root() {
return (
<AppProvider>
<App assets={assets} fonts={fonts}>
<AppStack />
</App>
</AppProvider>
)
}
export default __DEV__ ? withStorybook(Root) : Root