From c7ef1dad473b5c4671fd38c8c0dffafeb6f180ba Mon Sep 17 00:00:00 2001 From: Tsubasa SEKIGUCHI Date: Tue, 13 Aug 2024 00:08:57 +0900 Subject: [PATCH] =?UTF-8?q?unregisterAllTasksAsync=E3=81=AE=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index b482847e8..92b67e271 100644 --- a/index.js +++ b/index.js @@ -10,6 +10,7 @@ if (!TaskManager.isTaskDefined(LOCATION_TASK_NAME)) { setLocation(data.locations[0]) }) } +TaskManager.unregisterAllTasksAsync().catch(console.error) import 'fast-text-encoding' @@ -18,8 +19,6 @@ import App from './src' import { LOCATION_TASK_NAME } from './src/constants' import { setLocation } from './src/hooks/useLocationStore' -TaskManager.unregisterAllTasksAsync().catch(console.error) - // registerRootComponent calls AppRegistry.registerComponent('main', () => App); // It also ensures that whether you load the app in the Expo client or in a native build, // the environment is set up appropriately