mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Bump versions
This commit is contained in:
@@ -13,6 +13,7 @@ const netInfo = async (): Promise<{
|
||||
corrupted?: string
|
||||
}> => {
|
||||
log('log', 'netInfo', 'initializing')
|
||||
|
||||
const netInfo = await NetInfo.fetch()
|
||||
const instance = getInstance(store.getState())
|
||||
|
||||
|
@@ -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
|
Reference in New Issue
Block a user