React-Native报错记录:setting a timer for a long period of time
解决方法:
导入下面代码即可
import {Platform, InteractionManager} from 'react-native';
const _setTimeout = global.setTimeout;
const _clearTimeout = global.clearTimeout;
const MAX_TIMER_DURATION_MS = 60 * 1000;
if (Platform.OS === 'android') {
// Work around issu...
原创
2021-08-03 22:09:43 ·
344 阅读 ·
0 评论