Back to All

Prevent screen from turning off

We have a reactjs app where one of the features is to preview pdf files. We need to prevent the screen from turning off while the user reads the pdf file. Our app is already wrapped in Gonative wrapper. Is there any feature to prevent the screen from turning off in gonative that could be accessed from frontend js?