Установка таймера на длительный период времени, т. Е. На несколько минут, является проблемой производительности и корректности на Android, так как он поддерживает работу модуля таймера, а таймеры могут вызываться только тогда, когда приложение находится на переднем плане. См. https://github.com/facebook/react-native/issues/12981 для получения дополнительной информации.
(Saw setTimeout with duration 285987ms)
- node_modules\react-native\Libraries\YellowBox\YellowBox.js:71:8 in console.warn
- node_modules\expo\build\environment\muteWarnings.fx.js:18:23 in warn
- node_modules\react-native\Libraries\Core\Timers\JSTimers.js:242:8 in setTimeout
* http://192.168.43.142:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&minify=false&hot=false:161047:29 in setTimeoutNonBlocking
* http://192.168.43.142:19001/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&minify=false&hot=false:167896:28 in reportStats_
* [native code]:null in <unknown>
- node_modules\react-native\Libraries\Core\Timers\JSTimers.js:146:14 in _callTimer
- node_modules\react-native\Libraries\Core\Timers\JSTimers.js:399:17 in callTimers
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:436:47 in __callFunction
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:111:26 in __guard$argument_0
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384:10 in __guard
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:110:17 in __guard$argument_0
* [native code]:null in callFunctionReturnFlushedQueue