-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
31 lines (27 loc) · 851 Bytes
/
App.js
File metadata and controls
31 lines (27 loc) · 851 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
30
import React, {useState, useEffect} from 'react'
import Nav from './navigations/'
import {Provider} from 'react-redux'
import Store from './redux/store/configureStore'
import {createTables, addUuid, getUuid, dropTables} from './db'
import AppSplashAnimated from './AppSplashAnimated'
import * as Segment from 'expo-analytics-segment'
import { AppEventsLogger } from "react-native-fbsdk-next"
export default function App() {
useEffect(() => {
const run = async () => {
await createTables()
await addUuid()
const uuid = await getUuid()
Segment.initialize({androidWriteKey: process.env.WRITE_KEY, iosWriteKey: process.env.WRITE_KEY})
Segment.identify(uuid)
}
run()
}, [])
return (
<AppSplashAnimated>
<Provider store={Store}>
<Nav />
</Provider>
</AppSplashAnimated>
)
}