Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/snack-runtime/src/App.tsx
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -149,7 +149,7 @@ export default class App extends React.Component<Props, State> {
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())) {
Expand Down
4 changes: 2 additions & 2 deletions runtime/src/App.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -106,7 +106,7 @@ export default class App extends React.Component<object, State> {
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())) {
Expand Down