about summary refs log tree commit diff
path: root/src/lib/hooks
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-04-04 21:19:28 -0700
committerGitHub <noreply@github.com>2024-04-04 21:19:28 -0700
commitcddbbc4bd4aba10306cb828bebc46af3727a6fb6 (patch)
treeee163476ebc7f4d423b70e28588119b4c4997bd6 /src/lib/hooks
parent0433f8ad68c6778d79d97b35f26ca03ffa9b0db9 (diff)
downloadvoidsky-cddbbc4bd4aba10306cb828bebc46af3727a6fb6.tar.zst
migrate to `expo-application` (#3417)
* migrate to `expo-application`

* replace additional usage
Diffstat (limited to 'src/lib/hooks')
-rw-r--r--src/lib/hooks/useOTAUpdates.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/hooks/useOTAUpdates.ts b/src/lib/hooks/useOTAUpdates.ts
index 181f0b2c6..51fd18aa0 100644
--- a/src/lib/hooks/useOTAUpdates.ts
+++ b/src/lib/hooks/useOTAUpdates.ts
@@ -1,6 +1,6 @@
 import React from 'react'
 import {Alert, AppState, AppStateStatus} from 'react-native'
-import app from 'react-native-version-number'
+import {nativeBuildVersion} from 'expo-application'
 import {
   checkForUpdateAsync,
   fetchUpdateAsync,
@@ -21,7 +21,7 @@ async function setExtraParams() {
     isIOS ? 'ios-build-number' : 'android-build-number',
     // Hilariously, `buildVersion` is not actually a string on Android even though the TS type says it is.
     // This just ensures it gets passed as a string
-    `${app.buildVersion}`,
+    `${nativeBuildVersion}`,
   )
   await setExtraParamAsync(
     'channel',