@screeb/react-native 2.0.9 → 2.0.11

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/README.md CHANGED
@@ -13,6 +13,10 @@ A react-native module to integrate Screeb mobile sdk for Android and/or iOS.
13
13
 
14
14
  [See here.](https://github.com/ScreebApp/developers/wiki/React-Native-SDK-install)
15
15
 
16
+ ## Changelog
17
+
18
+ [See here.](https://www.notion.so/screeb/ReactNative-SDK-30e8dc27fa7a4dea979084d83e5140c3)
19
+
16
20
  ## Run example
17
21
 
18
22
  ```sh
@@ -26,12 +26,9 @@ class ScreebModule: RCTEventEmitter {
26
26
  }
27
27
  }
28
28
  }
29
- if let controller = UIApplication.shared.keyWindow?.rootViewController {
30
- DispatchQueue.main.async {
31
- Screeb.initSdk(context: controller, channelId: channelId, identity: userId_, visitorProperty: map, hooks: mapHooks)
32
- }
33
- } else {
34
- print("Screeb : error init, could not find rootViewController")
29
+
30
+ DispatchQueue.main.async {
31
+ Screeb.initSdk(context: nil, channelId: channelId, identity: userId_, visitorProperty: map, hooks: mapHooks)
35
32
  }
36
33
  }
37
34
 
@@ -90,7 +87,7 @@ class ScreebModule: RCTEventEmitter {
90
87
  }
91
88
  }
92
89
  DispatchQueue.main.async {
93
- Screeb.startSurvey(surveyId: surveyId, allowMultipleResponses: allowMultipleResponses_, hiddenFields: map, ignoreSurveyStatus: ignoreSurveyStatus_, hooks: mapHooks)
90
+ Screeb.startSurvey(surveyId: surveyId, allowMultipleResponses: allowMultipleResponses_, hiddenFields: map, ignoreSurveyStatus: ignoreSurveyStatus_, hooks: mapHooks)
94
91
  }
95
92
  }
96
93
 
@@ -155,7 +152,7 @@ class ScreebModule: RCTEventEmitter {
155
152
  return nil
156
153
  }
157
154
  }
158
-
155
+
159
156
  override func supportedEvents() -> [String]! {
160
157
  return ["ScreebEvent"]
161
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screeb/react-native",
3
- "version": "2.0.9",
3
+ "version": "2.0.11",
4
4
  "description": "Continuous Product Discovery",
5
5
  "scripts": {
6
6
  "clean": "rm -rf lib/",