How to use the expo-keep-awake.default function in expo-keep-awake

To help you get started, we’ve selected a few expo-keep-awake examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github expo / expo / packages / expo / src / deprecated.ts View on Github external
get() {
      deprecatedModule(
        `import { KeepAwake } from 'expo' -> import KeepAwake from 'expo-keep-awake'`,
        'expo-keep-awake'
      );
      return require('expo-keep-awake').default;
    },
  },

expo-keep-awake

Provides a React component that prevents the screen sleeping when rendered. It also exposes static methods to control the behavior imperatively.

MIT
Latest version published 27 days ago

Package Health Score

89 / 100
Full package analysis