-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
44 lines (39 loc) · 1.17 KB
/
App.tsx
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
import { init } from '@amplitude/analytics-react-native'
import Bugsnag from '@bugsnag/expo'
import { ProviderWrapper } from '@context/ProviderWrapper'
import { BUGSNAG_API_KEY, AMPLITUDE_API_KEY } from '@env'
import {
useFonts,
Inter_300Light,
Inter_400Regular,
Inter_500Medium,
Inter_600SemiBold,
Inter_700Bold,
Inter_800ExtraBold,
} from '@expo-google-fonts/inter'
import Navigator from '@navigation/Navigation'
import { SpiroKitProvider, useSpiroKitTheme } from '@spirokit/core'
import { SPIROKIT_CONFIG } from '@utils/spirokit-config'
export default function App() {
const myTheme = useSpiroKitTheme(SPIROKIT_CONFIG)
const [fontsLoaded] = useFonts({
Inter_Light: Inter_300Light,
Inter: Inter_400Regular,
Inter_Medium: Inter_500Medium,
Inter_SemiBold: Inter_600SemiBold,
Inter_Bold: Inter_700Bold,
Inter_ExtraBold: Inter_800ExtraBold,
})
init(AMPLITUDE_API_KEY)
if (!Bugsnag.isStarted() && !__DEV__) {
Bugsnag.start({ apiKey: BUGSNAG_API_KEY })
}
if (!fontsLoaded) return <></>
return (
<SpiroKitProvider theme={myTheme}>
<ProviderWrapper>
<Navigator />
</ProviderWrapper>
</SpiroKitProvider>
)
}