即使在进程被杀死之后,应用程

时间:2018-04-06 19:05:18

标签: react-native

我们有一个内部测试应用程序。

在这种情况下发生了一种非常奇怪的情况,如果你在应用程序的某一点并杀死了这个过程,几乎所有的手机都会发生,当再次打开应用程序时,这将从头开始。

但是特别是当杀死进程时,这会在它死亡的页面上开始,但是这种行为只发生在这个应用程序中,而其他安装在cel上的通常会发生。

我真的没有想法。

我的package.json

{
  "name": "appvideira",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "axios": "0.18.0",
    "native-base": "2.4.1",
    "react": "16.2.0",
    "react-native": "0.52.0",
    "react-native-camera": "0.12.0",
    "react-native-document-picker": "2.1.0",
    "react-native-fs": "2.9.11",
    "react-native-linear-gradient": "2.4.0",
    "react-native-loading-spinner-overlay": "0.5.2",
    "react-native-maps": "0.20.*",
    "react-native-masked-text": "1.6.5",
    "react-native-modal": "5.4.0",
    "react-native-router-flux": "4.0.0-beta.28"
  },
  "devDependencies": {
    "babel-jest": "22.4.3",
    "babel-preset-react-native": "4.0.0",
    "jest": "22.4.3",
    "react-test-renderer": "16.2.0"
  },
  "jest": {
    "preset": "react-native"
  }
}

1 个答案:

答案 0 :(得分:1)

这应该是一个评论,而不是一个答案,但是,对于新手来说,我还不能留下评论。

您是否了解应用程序的Activity Lifecycle

enter image description here