-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathApp.js
More file actions
executable file
·29 lines (23 loc) · 756 Bytes
/
App.js
File metadata and controls
executable file
·29 lines (23 loc) · 756 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
import React from 'react'
import { Platform } from 'react-native'
import { initialWindowMetrics, SafeAreaProvider } from 'react-native-safe-area-context'
import '~/i18next/i18next'
import { version } from '~/../package.json'
import AppProvider from '~/contexts'
import logger from '~/utils/logger'
import Navigation from '~/components/Navigation'
global.maxBitRate = 0
global.streamFormat = 'mp3'
const App = () => {
React.useEffect(() => {
logger.info('App', `App started (version: ${version}, platform: ${Platform.OS} ${Platform.Version})`)
}, [])
return (
<AppProvider>
<SafeAreaProvider initialMetrics={initialWindowMetrics}>
<Navigation />
</SafeAreaProvider>
</AppProvider>
)
}
export default App