@screeb/react-native 2.0.10 → 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
@@ -28,11 +28,7 @@ class ScreebModule: RCTEventEmitter {
28
28
  }
29
29
 
30
30
  DispatchQueue.main.async {
31
- if let controller = UIApplication.shared.keyWindow?.rootViewController {
32
- Screeb.initSdk(context: controller, channelId: channelId, identity: userId_, visitorProperty: map, hooks: mapHooks)
33
- } else {
34
- print("Screeb : error init, could not find rootViewController")
35
- }
31
+ Screeb.initSdk(context: nil, channelId: channelId, identity: userId_, visitorProperty: map, hooks: mapHooks)
36
32
  }
37
33
  }
38
34
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screeb/react-native",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Continuous Product Discovery",
5
5
  "scripts": {
6
6
  "clean": "rm -rf lib/",