在将React Native应用程序放到后台并将其留在后台任何时间长度后,我得到了一个延迟(大约10秒)的延迟。
整个应用程序都被冻结了。
可能导致这种情况的原因是什么?调试和隔离问题的最佳方法是什么?
我的package.json是:
{
"name": "MyApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"events": "^1.1.1",
"firebase": "^3.6.9",
"lodash": "^4.16.2",
"moment": "^2.15.2",
"react": "^15.4.1",
"react-native": "^0.40.0",
"react-native-fabric-digits": "github:jeanlebrument/react-native-fabric-digits",
"react-native-firebase-analytics": "^3.0.0",
"react-native-image-picker": "^0.22.9",
"react-native-invertible-scroll-view": "^1.0.0",
"react-native-push-notification": "^2.2.0",
"react-native-swipe-cards": "github:nicholasstephan/react-native-tinder-swipe-cards",
"url-regex": "^4.0.0"
}
}