Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public _activate() { if (process.env.NODE_ENV === 'development') { activateKeepAwake(); } }
Provides a React component that prevents the screen sleeping when rendered. It also exposes static methods to control the behavior imperatively.