react-native-google-places-autocomplete 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable react-native/no-inline-styles */
|
|
2
2
|
import debounce from 'lodash.debounce';
|
|
3
3
|
import Qs from 'qs';
|
|
4
|
-
import
|
|
4
|
+
import uuid from 'react-native-uuid';
|
|
5
5
|
import React, {
|
|
6
6
|
forwardRef,
|
|
7
7
|
useMemo,
|
|
@@ -168,7 +168,7 @@ export const GooglePlacesAutocomplete = forwardRef((props, ref) => {
|
|
|
168
168
|
);
|
|
169
169
|
const [url, setUrl] = useState('');
|
|
170
170
|
const [listLoaderDisplayed, setListLoaderDisplayed] = useState(false);
|
|
171
|
-
const [sessionToken, setSessionToken] = useState(
|
|
171
|
+
const [sessionToken, setSessionToken] = useState(uuid.v4());
|
|
172
172
|
|
|
173
173
|
// ==========================================================================
|
|
174
174
|
// UTILITY FUNCTIONS
|
|
@@ -731,7 +731,7 @@ export const GooglePlacesAutocomplete = forwardRef((props, ref) => {
|
|
|
731
731
|
fields,
|
|
732
732
|
}),
|
|
733
733
|
);
|
|
734
|
-
setSessionToken(
|
|
734
|
+
setSessionToken(uuid.v4());
|
|
735
735
|
} else {
|
|
736
736
|
request.open(
|
|
737
737
|
'GET',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-google-places-autocomplete",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "Customizable Google Places autocomplete component for iOS and Android React-Native apps",
|
|
5
5
|
"main": "GooglePlacesAutocomplete.js",
|
|
6
6
|
"types": "GooglePlacesAutocomplete.d.ts",
|
|
@@ -29,13 +29,14 @@
|
|
|
29
29
|
},
|
|
30
30
|
"homepage": "https://github.com/FaridSafi/react-native-google-places-autocomplete#readme",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"expo-crypto": "^14.1.5",
|
|
33
32
|
"lodash.debounce": "^4.0.8",
|
|
34
|
-
"qs": "~6.9.1"
|
|
33
|
+
"qs": "~6.9.1",
|
|
34
|
+
"react-native-uuid": "^2.0.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@react-native-community/eslint-config": "2.0.0",
|
|
38
38
|
"eslint": "7.10.0",
|
|
39
|
+
"eslint-plugin-prettier": "^3.1.2",
|
|
39
40
|
"husky": "4.3.0",
|
|
40
41
|
"lint-staged": "10.4.0",
|
|
41
42
|
"prettier": "2.1.2",
|