Prevent screen to sleep in ReactNative app.
npm install react-native-idle --save react-native link react-native-idle
import RNIdle from 'react-native-idle' RNIdle.disableIdleTimer() RNIdle.enableIdleTimer()