React Native Keep Awake

screenshot of React Native Keep Awake
react-native

Keep the screen from going to sleep. iOS and Android.

Overview

This React Native package is designed to prevent the screen from going to sleep while the application is active, serving a critical purpose in scenarios such as navigation or video playback where continuous visibility is required without user interaction. It offers flexibility in usage by providing two methods to keep the screen awake.

Features

  • Prevent Screen from Sleeping: Keeps the screen awake during app usage.
  • Flexibility: Offers both component rendering and static method activation options.
  • Cross-Platform Compatibility: Supports installation on both iOS and Android devices.
  • Easy Installation: Straightforward installation process using npm or manual configuration.
  • Updated Fork: Continuously maintained and updated fork without Expo dependency.
  • Compatibility: Supports React Native versions 0.57+ and legacy versions as well.

Summary

The React Native Keep Awake package provides a convenient solution for developers to maintain screen visibility during specific app interactions. With its ease of installation, compatibility with various React Native versions, and flexibility in usage methods, it caters to diverse development needs. Whether rendering the component or utilizing static methods, developers can effectively manage screen wake-lock for improved user experience in their applications.

react-native
React Native

React Native is a framework for building mobile applications using React and JavaScript. It enables developers to write once and deploy to multiple platforms, including iOS, Android, and the web, while providing a native app-like experience to users.