diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-04 13:01:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 13:01:38 -0500 |
commit | f717ff67190320d86de97f0984e70ed8cf2c9fab (patch) | |
tree | 297ee8f6e0c1a54d1dd7db07ab03d1ea6d398abf /src/App.web.tsx | |
parent | b100abca0e3007c4d5ce331d5877c3036fd945ec (diff) | |
download | voidsky-f717ff67190320d86de97f0984e70ed8cf2c9fab.tar.zst |
* Add analytics to the web build (close #233) * Use bsky endpoint for analytics
Diffstat (limited to 'src/App.web.tsx')
-rw-r--r-- | src/App.web.tsx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/App.web.tsx b/src/App.web.tsx index 0bfa909be..3f79f06b2 100644 --- a/src/App.web.tsx +++ b/src/App.web.tsx @@ -2,6 +2,7 @@ import React, {useState, useEffect} from 'react' import {SafeAreaProvider} from 'react-native-safe-area-context' import {RootSiblingParent} from 'react-native-root-siblings' import * as view from './view/index' +import * as analytics from 'lib/analytics' import {RootStoreModel, setupState, RootStoreProvider} from './state' import {Shell} from './view/shell/index' import {ToastContainer} from './view/com/util/Toast.web' @@ -16,6 +17,7 @@ function App() { view.setup() setupState().then(store => { setRootStore(store) + analytics.init(store) }) }, []) @@ -26,12 +28,14 @@ function App() { return ( <RootSiblingParent> - <RootStoreProvider value={rootStore}> - <SafeAreaProvider> - <Shell /> - </SafeAreaProvider> - <ToastContainer /> - </RootStoreProvider> + <analytics.Provider> + <RootStoreProvider value={rootStore}> + <SafeAreaProvider> + <Shell /> + </SafeAreaProvider> + <ToastContainer /> + </RootStoreProvider> + </analytics.Provider> </RootSiblingParent> ) } |