This commit is contained in:
Diego Mello 2020-04-15 14:36:21 -03:00
parent ab5d0b15ef
commit bba76a7879
3 changed files with 2 additions and 46 deletions

View File

@ -67,7 +67,7 @@
"react-native-image-zoom-viewer": "^2.2.26",
"react-native-jitsi-meet": "RocketChat/react-native-jitsi-meet",
"react-native-keyboard-aware-scroll-view": "0.9.1",
"react-native-keyboard-input": "^5.3.1",
"react-native-keyboard-input": "5.4.1",
"react-native-keyboard-tracking-view": "^5.6.1",
"react-native-keycommands": "2.0.3",
"react-native-localize": "1.3.1",

View File

@ -1,44 +0,0 @@
diff --git a/node_modules/redux-enhancer-react-native-appstate/index.js b/node_modules/redux-enhancer-react-native-appstate/index.js
index 769e39c..db9e993 100644
--- a/node_modules/redux-enhancer-react-native-appstate/index.js
+++ b/node_modules/redux-enhancer-react-native-appstate/index.js
@@ -10,22 +10,25 @@ export default () => (createStore) => (...args) => {
let currentState = '';
const handleAppStateChange = (nextAppState) => {
- if (currentState !== nextAppState) {
- let type;
- if (nextAppState === 'active') {
- type = FOREGROUND;
- } else if (nextAppState === 'background') {
- type = BACKGROUND;
- } else if (nextAppState === 'inactive') {
- type = INACTIVE;
- }
- if (type) {
- store.dispatch({
- type,
- });
+ if (nextAppState !== 'inactive') {
+ if (currentState !== nextAppState) {
+ let type;
+ if (nextAppState === 'active') {
+ type = FOREGROUND;
+ } else if (nextAppState === 'background') {
+ type = BACKGROUND;
+ }
+ // else if (nextAppState === 'inactive') {
+ // type = INACTIVE;
+ // }
+ if (type) {
+ store.dispatch({
+ type,
+ });
+ }
}
+ currentState = nextAppState;
}
- currentState = nextAppState;
};
AppState.addEventListener('change', handleAppStateChange);

View File

@ -9973,7 +9973,7 @@ react-native-keyboard-aware-scroll-view@0.9.1:
prop-types "^15.6.2"
react-native-iphone-x-helper "^1.0.3"
react-native-keyboard-input@^5.3.1:
react-native-keyboard-input@5.4.1:
version "5.4.1"
resolved "https://registry.yarnpkg.com/react-native-keyboard-input/-/react-native-keyboard-input-5.4.1.tgz#c32d72e4fda83684b39cef7ef0657f821c1f015f"
integrity sha512-IpHVgofQYEhjzFIJI2KlfHQ2u6Qq+WaSl5c5j4RZHlIyQtwGvOXfyEIY0llPABDXStp4Mq8Joj1Z/9UjLqGFIQ==