react-native-steerpath-smart-map 1.23.0 → 1.23.2

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.
package/CHANGELOG.md CHANGED
@@ -15,6 +15,16 @@ This package is built on top of Steerpath's Smart SDK, and most of releases are
15
15
  - [iOS](https://s3-eu-west-1.amazonaws.com/steerpath/ios/releases/smart-sdk-changelog/index.html)
16
16
  - [Web](https://s3-eu-west-1.amazonaws.com/steerpath-web-sdk/documentation/smart/latest/index.html)
17
17
 
18
+ ## [1.23.2] - 2023-06-26
19
+
20
+ - Bump iOS Smart SDK version to 1.17.2
21
+ - Fixes an issue where indoor map went blank after returning app from background
22
+
23
+ ## [1.23.1] - 2023-05-25
24
+
25
+ - Fix live category search for iOS
26
+ - Bump iOS Smart SDK to version 1.17.1
27
+
18
28
  ## [1.23.0] - 2023-05-25
19
29
 
20
30
  - New icons!
@@ -3,18 +3,19 @@ var RNSmartLocationManager = NativeModules.RNSmartLocationManager;
3
3
  var smartLocationManagerEmitter = new NativeEventEmitter(RNSmartLocationManager);
4
4
  function createSmartLocationManager() {
5
5
  var eventListenerRegistered = false;
6
+ var eventListener;
6
7
  return {
7
8
  addLocationChangedListener: function (listener) {
8
9
  if (!eventListenerRegistered) {
9
10
  eventListenerRegistered = true;
10
- smartLocationManagerEmitter.addListener('locationChanged', function (payload) {
11
+ eventListener = smartLocationManagerEmitter.addListener('locationChanged', function (payload) {
11
12
  listener(payload);
12
13
  });
13
14
  }
14
15
  },
15
16
  removeLocationChangedListener: function () {
16
17
  eventListenerRegistered = false;
17
- smartLocationManagerEmitter.removeListener('locationChanged', function () { });
18
+ eventListener.remove();
18
19
  }
19
20
  };
20
21
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-steerpath-smart-map",
3
3
  "title": "React Native Steerpath Smart Map",
4
- "version": "1.23.0",
4
+ "version": "1.23.2",
5
5
  "description": "Steerpath SmartMapView for React Native",
6
6
  "main": "dist/index.js",
7
7
  "scripts": {
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
20
20
  s.requires_arc = true
21
21
 
22
22
  s.dependency "React"
23
- s.dependency 'SteerpathSmartSDK', '~> 1.17.0'
23
+ s.dependency 'SteerpathSmartSDK', '~> 1.17.2'
24
24
  # s.dependency "..."
25
25
  end
26
26