[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',
icon: iconsMap.starOutline
}]
}
},
blurOnUnmount: true
};
}

View File

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

21
package-lock.json generated
View File

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

View File

@ -52,7 +52,7 @@
"react-native-markdown-renderer": "^3.2.8",
"react-native-meteor": "^1.4.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-optimized-flatlist": "^1.0.4",
"react-native-picker-select": "^4.4.0",