Désactivation du bouton de connexion pendant une connexion

This commit is contained in:
2024-12-10 08:19:54 +01:00
parent 48845c70c2
commit 4da75e310e
2 changed files with 19 additions and 9 deletions

View File

@ -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)