Désactivation du bouton de connexion pendant une connexion
This commit is contained in:
@ -4,15 +4,13 @@ import { Platform } from 'react-native'
|
||||
import { useEffect } from 'react'
|
||||
|
||||
const BACKGROUND_FETCH_TASK = "background-fetch"
|
||||
const BACKGROUND_FETCH_INTERVAL = 20
|
||||
const BACKGROUND_FETCH_INTERVAL = 60
|
||||
|
||||
async function backgroundUpdate() {
|
||||
async () => {
|
||||
const now = Date.now()
|
||||
console.log(`Got background fetch call at date: ${new Date(now).toISOString()}`)
|
||||
// Be sure to return the successful result type!
|
||||
return BackgroundFetch.BackgroundFetchResult.NewData
|
||||
}
|
||||
const now = Date.now()
|
||||
console.log(`Got background fetch call at date: ${new Date(now).toISOString()}`)
|
||||
// Be sure to return the successful result type!
|
||||
return BackgroundFetch.BackgroundFetchResult.NewData
|
||||
}
|
||||
|
||||
TaskManager.defineTask(BACKGROUND_FETCH_TASK, backgroundUpdate)
|
||||
|
Reference in New Issue
Block a user