Update react-native-elements (#4658)

This commit is contained in:
Elias Nahum 2020-08-12 11:10:14 -04:00 committed by GitHub
parent fbc400bcff
commit 27849beed4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 44 deletions

43
package-lock.json generated
View file

@ -6120,7 +6120,6 @@
"version": "16.9.43",
"resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.43.tgz",
"integrity": "sha512-PxshAFcnJqIWYpJbLPriClH53Z2WlJcVZE+NP2etUtWQs2s7yIMj3/LDKZT/5CHJ/F62iyjVCDu2H3jHEXIxSg==",
"dev": true,
"requires": {
"@types/prop-types": "*",
"csstype": "^2.2.0"
@ -6130,7 +6129,6 @@
"version": "0.62.18",
"resolved": "https://registry.npmjs.org/@types/react-native/-/react-native-0.62.18.tgz",
"integrity": "sha512-7QfU8EzIYxYqeXpPf8QNv2xi8hrePlgTbRATRo+plRSdVfJu7N6sAXqrFxKJp6bGLvp82GV1gczl93gqiAfXPA==",
"dev": true,
"requires": {
"@types/react": "*"
}
@ -6142,25 +6140,6 @@
"requires": {
"@types/react": "*",
"@types/react-native": "*"
},
"dependencies": {
"@types/react": {
"version": "16.9.38",
"resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.38.tgz",
"integrity": "sha512-pHAeZbjjNRa/hxyNuLrvbxhhnKyKNiLC6I5fRF2Zr/t/S6zS41MiyzH4+c+1I9vVfvuRt1VS2Lodjr4ZWnxrdA==",
"requires": {
"@types/prop-types": "*",
"csstype": "^2.2.0"
}
},
"@types/react-native": {
"version": "0.62.13",
"resolved": "https://registry.npmjs.org/@types/react-native/-/react-native-0.62.13.tgz",
"integrity": "sha512-hs4/tSABhcJx+J8pZhVoXHrOQD89WFmbs8QiDLNSA9zNrD46pityAuBWuwk1aMjPk9I3vC5ewkJroVRHgRIfdg==",
"requires": {
"@types/react": "*"
}
}
}
},
"@types/react-test-renderer": {
@ -15345,8 +15324,7 @@
"lodash.isequal": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
"integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA=",
"dev": true
"integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA="
},
"lodash.isplainobject": {
"version": "4.0.6",
@ -18270,18 +18248,19 @@
"integrity": "sha512-YdjiiElDdvOj55IDPNJ0kxXxzDRWyDymV/iYZJt34ueRWWFLIff+DymSjBc0QljrIFv7pODws2lo81+5Y0ww0w=="
},
"react-native-elements": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/react-native-elements/-/react-native-elements-2.0.0.tgz",
"integrity": "sha512-xViTU/JlabYX94fDL2iu17gvMtgEOq2lFAToYlU3RBkwb/J13cdwSr8Ti9z6v6Iui4f8S3FjkpRJnFaOsZrK7w==",
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/react-native-elements/-/react-native-elements-2.2.0.tgz",
"integrity": "sha512-OkXH96ecqDFcrjxzOWw2h3nt8TxX1ghzvJ/W4OGaxm7u7LC0LzE3SMAx/rh/Zyp/jkdXap032ZLm1mSrxrBuuQ==",
"requires": {
"@types/react-native-vector-icons": "^6.4.4",
"@types/react-native-vector-icons": "^6.4.5",
"color": "^3.1.0",
"deepmerge": "^3.1.0",
"hoist-non-react-statics": "^3.1.0",
"lodash.isequal": "^4.5.0",
"opencollective-postinstall": "^2.0.0",
"prop-types": "^15.7.2",
"react-native-ratings": "^6.5.0",
"react-native-status-bar-height": "^2.2.0"
"react-native-ratings": "^7.2.0",
"react-native-status-bar-height": "^2.5.0"
},
"dependencies": {
"deepmerge": {
@ -18448,9 +18427,9 @@
"integrity": "sha512-R1mVPGctEJuOlxoeIBlT5270A+DKngP78rWU0dgMxIuETjGYhBRJMKOp1rQUbp6PxcahfU+PjSTSzsbja5FyDw=="
},
"react-native-ratings": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/react-native-ratings/-/react-native-ratings-6.5.0.tgz",
"integrity": "sha512-YMcfQ7UQCmXGEc/WPlukHSHs5yvckTwjq5fTRk1FG8gaO7fZCNygEUGPuw4Dbvvp3IlsCUn0bOQd63RYsb7NDQ==",
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/react-native-ratings/-/react-native-ratings-7.2.0.tgz",
"integrity": "sha512-oSrkQ4rnpYjCw+d6MPJQghXfrfb3uQKoTJx1exdk7xqzw4jnv3pyu0PAuxCDJk/rfDSD/sirIAudz+zdGxrBog==",
"requires": {
"lodash": "^4.17.4",
"prop-types": "^15.5.10"

View file

@ -42,7 +42,7 @@
"react-native-cookies": "github:mattermost/react-native-cookies#b35bafc388ae09c83bd875e887daf6a0755e0b40",
"react-native-device-info": "5.5.7",
"react-native-document-picker": "3.4.0",
"react-native-elements": "2.0.0",
"react-native-elements": "2.2.0",
"react-native-exception-handler": "2.10.8",
"react-native-fast-image": "8.1.5",
"react-native-file-viewer": "2.1.0",

View file

@ -1,25 +1,25 @@
diff --git a/node_modules/react-native-elements/src/searchbar/SearchBar-android.js b/node_modules/react-native-elements/src/searchbar/SearchBar-android.js
index f44866a..76406c2 100644
index e8394b6..0eaf9dd 100644
--- a/node_modules/react-native-elements/src/searchbar/SearchBar-android.js
+++ b/node_modules/react-native-elements/src/searchbar/SearchBar-android.js
@@ -78,6 +78,12 @@ class SearchBar extends Component {
};
}
@@ -31,6 +31,12 @@ const defaultClearIcon = {
};
class SearchBar extends Component {
+ componentDidUpdate(prevProps) {
+ if (this.props.value !== prevProps.value) {
+ this.setState({isEmpty: this.props.value === ''});
+ }
+ }
+
render() {
const {
clearIcon,
focus = () => {
this.input.focus();
};
diff --git a/node_modules/react-native-elements/src/searchbar/SearchBar-ios.js b/node_modules/react-native-elements/src/searchbar/SearchBar-ios.js
index 32a28d5..d43e9bf 100644
index b656616..6ecbad2 100644
--- a/node_modules/react-native-elements/src/searchbar/SearchBar-ios.js
+++ b/node_modules/react-native-elements/src/searchbar/SearchBar-ios.js
@@ -41,6 +41,12 @@ class SearchBar extends Component {
@@ -40,6 +40,12 @@ class SearchBar extends Component {
};
}
@ -32,7 +32,7 @@ index 32a28d5..d43e9bf 100644
focus = () => {
this.input.focus();
};
@@ -260,7 +266,6 @@ const styles = StyleSheet.create({
@@ -265,7 +271,6 @@ const styles = StyleSheet.create({
paddingBottom: 13,
paddingTop: 13,
flexDirection: 'row',
@ -40,7 +40,7 @@ index 32a28d5..d43e9bf 100644
alignItems: 'center',
},
input: {
@@ -271,7 +276,7 @@ const styles = StyleSheet.create({
@@ -276,7 +281,7 @@ const styles = StyleSheet.create({
borderBottomWidth: 0,
backgroundColor: '#dcdce1',
borderRadius: 9,