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())) {