简体   繁体   中英

React Native: Prevent screen from being turned off while coding

I created react-native project using npx react-native init AwesomeProject , When I run(debug) my app in android device ( yarn android ) after sometime my device screen getting turned off (while I'm coding and connected to laptop).

Every time when I do a code change I need to turned on device screen to see the change.

How to prevent this ?

Thanks.

在设备上的 Android 开发人员设置中,有一个选项可以在连接到计算机时保持屏幕开启。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM