From d1525c5e40c45c9ecd038884bbd043dc2addfd66 Mon Sep 17 00:00:00 2001 From: Rob Walker Date: Fri, 23 Aug 2024 14:51:21 +0100 Subject: [PATCH] chore: migrate from activateKeepAwake to activateKeepAwakeAsync --- packages/snack-runtime/src/App.tsx | 4 ++-- runtime/src/App.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/snack-runtime/src/App.tsx b/packages/snack-runtime/src/App.tsx index 86f3f263..5546f171 100644 --- a/packages/snack-runtime/src/App.tsx +++ b/packages/snack-runtime/src/App.tsx @@ -1,7 +1,7 @@ import './polyfill'; import AsyncStorage from '@react-native-async-storage/async-storage'; -import { activateKeepAwake } from 'expo-keep-awake'; +import { activateKeepAwakeAsync } from 'expo-keep-awake'; import { StatusBar } from 'expo-status-bar'; import * as React from 'react'; import { @@ -149,7 +149,7 @@ export default class App extends React.Component { this._listenForUpdates(deviceId); // Keep the device awake so the user doesn't have to keep waking it while coding - activateKeepAwake(); + activateKeepAwakeAsync(); // If we have an entry point file already, we can load now if (Files.get(Files.entry())) { diff --git a/runtime/src/App.tsx b/runtime/src/App.tsx index f4b66361..109e3491 100644 --- a/runtime/src/App.tsx +++ b/runtime/src/App.tsx @@ -1,7 +1,7 @@ import './polyfill'; import AsyncStorage from '@react-native-async-storage/async-storage'; -import { activateKeepAwake } from 'expo-keep-awake'; +import { activateKeepAwakeAsync } from 'expo-keep-awake'; import { StatusBar } from 'expo-status-bar'; import * as Updates from 'expo-updates'; import * as React from 'react'; @@ -106,7 +106,7 @@ export default class App extends React.Component { this._listenForUpdates(deviceId); // Keep the device awake so the user doesn't have to keep waking it while coding - activateKeepAwake(); + activateKeepAwakeAsync(); // If we have an entry point file already, we can load now if (Files.get(Files.entry())) {