[FIX] Dismiss keyboard on room close (#530)

This commit is contained in:
Diego Mello 2018-11-05 17:02:54 -02:00 committed by GitHub
parent 461f865656
commit 0dd4899789
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 14 deletions

View File

@ -67,7 +67,8 @@ export default class RoomView extends LoggedView {
testID: 'room-view-header-star', testID: 'room-view-header-star',
icon: iconsMap.starOutline icon: iconsMap.starOutline
}] }]
} },
blurOnUnmount: true
}; };
} }

View File

@ -90,7 +90,8 @@ export default class RoomsListView extends LoggedView {
right: { right: {
enabled: true enabled: true
} }
} },
blurOnUnmount: true
}; };
} }
@ -379,6 +380,7 @@ export default class RoomsListView extends LoggedView {
} }
goRoom = (rid) => { goRoom = (rid) => {
this.cancelSearchingAndroid();
Navigation.push('RoomsListView', { Navigation.push('RoomsListView', {
component: { component: {
name: 'RoomView', name: 'RoomView',
@ -387,7 +389,6 @@ export default class RoomsListView extends LoggedView {
} }
} }
}); });
this.cancelSearchingAndroid();
} }
_onPressItem = async(item = {}) => { _onPressItem = async(item = {}) => {

21
package-lock.json generated
View File

@ -17316,28 +17316,29 @@
} }
}, },
"react-native-navigation": { "react-native-navigation": {
"version": "2.0.2588", "version": "2.0.2641",
"resolved": "https://registry.npmjs.org/react-native-navigation/-/react-native-navigation-2.0.2588.tgz", "resolved": "https://registry.npmjs.org/react-native-navigation/-/react-native-navigation-2.0.2641.tgz",
"integrity": "sha512-ljVz3RWNv8Cj2vRcedkWAUuMbDac9ZduBRgYPCQ3GXFVhmpthLSaZLWuMfqqkpznHyPGy0kwEG+XX6Z93cqemw==", "integrity": "sha512-Pk8SUV0Fh8gev7/axDXjp0BcjliS+LnJy3QDfNtqeNgLd3P3Ht+08dOLvzGoTAJ7BYYDlXpxxM3TqT1yNrLKrA==",
"requires": { "requires": {
"hoist-non-react-statics": "3.x.x", "hoist-non-react-statics": "3.x.x",
"lodash": "4.x.x", "lodash": "4.x.x",
"prop-types": "15.x.x", "prop-types": "15.x.x",
"react-lifecycles-compat": "2.0.0" "react-lifecycles-compat": "2.0.0",
"tslib": "1.9.3"
}, },
"dependencies": { "dependencies": {
"hoist-non-react-statics": { "hoist-non-react-statics": {
"version": "3.0.1", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.0.1.tgz", "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.1.0.tgz",
"integrity": "sha512-1kXwPsOi0OGQIZNVMPvgWJ9tSnGMiMfJdihqEzrPEXlHOBh9AAHXX/QYmAJTXztnz/K+PQ8ryCb4eGaN6HlGbQ==", "integrity": "sha512-MYcYuROh7SBM69xHGqXEwQqDux34s9tz+sCnxJmN18kgWh6JFdTw/5YdZtqsOdZJXddE/wUpCzfEdDrJj8p0Iw==",
"requires": { "requires": {
"react-is": "^16.3.2" "react-is": "^16.3.2"
} }
}, },
"react-is": { "react-is": {
"version": "16.5.2", "version": "16.6.0",
"resolved": "https://registry.npmjs.org/react-is/-/react-is-16.5.2.tgz", "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.6.0.tgz",
"integrity": "sha512-hSl7E6l25GTjNEZATqZIuWOgSnpXb3kD0DVCujmg46K5zLxsbiKaaT6VO9slkSBDPZfYs30lwfJwbOFOnoEnKQ==" "integrity": "sha512-q8U7k0Fi7oxF1HvQgyBjPwDXeMplEsArnKt2iYhuIF86+GBbgLHdAmokL3XUFjTd7Q363OSNG55FOGUdONVn1g=="
}, },
"react-lifecycles-compat": { "react-lifecycles-compat": {
"version": "2.0.0", "version": "2.0.0",

View File

@ -52,7 +52,7 @@
"react-native-markdown-renderer": "^3.2.8", "react-native-markdown-renderer": "^3.2.8",
"react-native-meteor": "^1.4.0", "react-native-meteor": "^1.4.0",
"react-native-modal": "^6.5.0", "react-native-modal": "^6.5.0",
"react-native-navigation": "^2.0.2588", "react-native-navigation": "^2.0.2641",
"react-native-notifications": "^1.1.20", "react-native-notifications": "^1.1.20",
"react-native-optimized-flatlist": "^1.0.4", "react-native-optimized-flatlist": "^1.0.4",
"react-native-picker-select": "^4.4.0", "react-native-picker-select": "^4.4.0",