[APP-107] OTA updates (#587)
* add 1000ms fallbackToCacheTimeout * add listener via useOTAUpdate hook and show modal if update is available * finish expo-updates setup * setup useOTAUpdate hook * add 1000ms fallbackToCacheTimeout * add listener via useOTAUpdate hook and show modal if update is available * finish expo-updates setup * setup useOTAUpdate hook * add OTA updates * Update build.md * temporarily disable ota updates * refactor useOTAUpdate code
This commit is contained in:
parent
ad4eaf5ed2
commit
ba4bb46c3f
6 changed files with 95 additions and 3 deletions
|
@ -445,7 +445,7 @@ export const SettingsScreen = withAuthRequired(
|
|||
</Link>
|
||||
) : null}
|
||||
<Text type="sm" style={[styles.buildInfo, pal.textLight]}>
|
||||
Build version {AppInfo.appVersion}
|
||||
Build version {AppInfo.appVersion} {AppInfo.updateChannel}
|
||||
</Text>
|
||||
<View style={s.footerSpacer} />
|
||||
</ScrollView>
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue