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