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