diff --git a/package.json b/package.json index dc86441ba..c2e7ffc6b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/patches/redux-enhancer-react-native-appstate+0.3.1.patch b/patches/redux-enhancer-react-native-appstate+0.3.1.patch deleted file mode 100644 index f756408fc..000000000 --- a/patches/redux-enhancer-react-native-appstate+0.3.1.patch +++ /dev/null @@ -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); diff --git a/yarn.lock b/yarn.lock index 43a11e93b..024bdda79 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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==