about summary refs log tree commit diff
path: root/src/view/shell/index.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-06-02 15:29:36 -0500
committerPaul Frazee <pfrazee@gmail.com>2023-06-02 15:29:36 -0500
commit75b729a670a9db03bd8c977b4255cbaa4a6eeb87 (patch)
tree42b3bf2cda0f91e819624cbe4822b9a9ae5b3ed8 /src/view/shell/index.tsx
parenta2721ceb95d472a35628fa7bb9361297a317437a (diff)
parentba4bb46c3fc3d670e565c69bdf71dbb4510b51f0 (diff)
downloadvoidsky-75b729a670a9db03bd8c977b4255cbaa4a6eeb87.tar.zst
Merge branch 'main' of github.com:bluesky-social/social-app into main
Diffstat (limited to 'src/view/shell/index.tsx')
-rw-r--r--src/view/shell/index.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx
index a6066b25f..36f7442dc 100644
--- a/src/view/shell/index.tsx
+++ b/src/view/shell/index.tsx
@@ -18,9 +18,11 @@ import {RoutesContainer, TabsNavigator} from '../../Navigation'
 import {isStateAtTabRoot} from 'lib/routes/helpers'
 import {isAndroid} from 'platform/detection'
 import {SafeAreaProvider} from 'react-native-safe-area-context'
+import {useOTAUpdate} from 'lib/hooks/useOTAUpdate'
 
 const ShellInner = observer(() => {
   const store = useStores()
+  useOTAUpdate() // this hook polls for OTA updates every few seconds
   const winDim = useWindowDimensions()
   const safeAreaInsets = useSafeAreaInsets()
   const containerPadding = React.useMemo(