1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Bump versions

This commit is contained in:
Zhiyuan Zheng
2021-03-15 22:30:29 +01:00
parent 17b198c958
commit 7329c7038b
13 changed files with 1057 additions and 211 deletions

View File

@@ -13,6 +13,7 @@ const netInfo = async (): Promise<{
corrupted?: string
}> => {
log('log', 'netInfo', 'initializing')
const netInfo = await NetInfo.fetch()
const instance = getInstance(store.getState())

View File

@@ -1,15 +0,0 @@
import NetInfo from '@react-native-community/netinfo'
import { onlineManager } from 'react-query'
import log from './log'
const onlineStatus = () =>
onlineManager.setEventListener(setOnline => {
log('log', 'onlineStatus', 'added onlineManager listener')
return NetInfo.addEventListener(state => {
log('log', 'onlineStatus', `setting online state ${state.isConnected}`)
// @ts-ignore
setOnline(state.isConnected)
})
})
export default onlineStatus