netinfo and bugsnag update, appstate timeout remove

This commit is contained in:
feruz 2020-01-07 13:07:12 +02:00
parent ea47f8dbfe
commit 4ff10ba48b
3 changed files with 14 additions and 12 deletions

View File

@ -30,14 +30,14 @@
"@esteemapp/react-native-slider": "^0.12.0",
"@react-native-community/async-storage": "^1.7.1",
"@react-native-community/cameraroll": "^1.3.0",
"@react-native-community/netinfo": "^4.1.3",
"@react-native-community/netinfo": "^5.3.2",
"appcenter": "^2.6.0",
"appcenter-analytics": "^2.6.0",
"appcenter-crashes": "^2.6.0",
"appcenter-push": "^2.6.0",
"axios": "^0.18.0",
"buffer": "^5.2.1",
"bugsnag-react-native": "^2.23.3",
"bugsnag-react-native": "^2.23.4",
"core-js": "^2.6.0",
"crypto-js": "^3.1.9-1",
"currency-symbol-map": "^4.0.4",

View File

@ -77,10 +77,12 @@ import lightTheme from '../../../themes/lightTheme';
// Workaround
let previousAppState = 'background';
export const setPreviousAppState = () => {
const appStateTimeout = setTimeout(() => {
previousAppState = AppState.currentState;
/*const appStateTimeout = setTimeout(() => {
console.log('current appstate timeout', AppState.currentState);
previousAppState = AppState.currentState;
clearTimeout(appStateTimeout);
}, 2000);
}, 2000);*/
};
class ApplicationContainer extends Component {

View File

@ -1482,10 +1482,10 @@
eslint-plugin-react-native "3.6.0"
prettier "1.16.4"
"@react-native-community/netinfo@^4.1.3":
version "4.7.0"
resolved "https://registry.yarnpkg.com/@react-native-community/netinfo/-/netinfo-4.7.0.tgz#7482d36836cac69d0a0ae25581f65bc472639930"
integrity sha512-a/sDB+AsLEUNmhAUlAaTYeXKyQdFGBUfatqKkX5jluBo2CB3OAuTHfm7rSjcaLB9EmG5iSq3fOTpync2E7EYTA==
"@react-native-community/netinfo@^5.3.2":
version "5.3.2"
resolved "https://registry.yarnpkg.com/@react-native-community/netinfo/-/netinfo-5.3.2.tgz#7b6ee417c2a905663e10de176c00eeab09bdd14c"
integrity sha512-npNcLAz6iWzwRNh+0tSFMlR+xkpSz9NWzX+5AxW40KE6qEZGWdE3dtGBKsezMdWD2Fh+6Je6P6hgUEF8xuZrbA==
"@react-native-community/viewpager@^2.0.1":
version "2.0.2"
@ -2477,10 +2477,10 @@ buffer@^5.2.1:
base64-js "^1.0.2"
ieee754 "^1.1.4"
bugsnag-react-native@^2.23.3:
version "2.23.3"
resolved "https://registry.yarnpkg.com/bugsnag-react-native/-/bugsnag-react-native-2.23.3.tgz#c4116d85b7ed921f59ea395521577f0d60280805"
integrity sha512-SPchJq+V0Pwl1PhLlEltyP+5mNzwPomTOJPAaMINiDyg9RsuCPK8onzetJj0PlP5gfULHrjEU7ZRhARh1eMKvw==
bugsnag-react-native@^2.23.4:
version "2.23.4"
resolved "https://registry.yarnpkg.com/bugsnag-react-native/-/bugsnag-react-native-2.23.4.tgz#4ea9e877a86488b0c6212b2ee756c597b7194878"
integrity sha512-If8gkcQdLCtOppWViF8rN+Ylr3cloLf5kk+hG0cF7uTxYp7O63dd6J5jGIGnMCW/7IKfqcwn4t6sb/WJl6uM7A==
dependencies:
iserror "^0.0.2"
promise "^7"