migrate to expo-application
(#3417)
* migrate to `expo-application` * replace additional usage
This commit is contained in:
parent
0433f8ad68
commit
cddbbc4bd4
5 changed files with 15 additions and 21 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue