Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(runtime): Migrate from activateKeepAwake to activateKeepAwakeAsync #603

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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