@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 +4 -0
- package/ios/ScreebModule.swift +5 -8
- package/package.json +1 -1
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
|
package/ios/ScreebModule.swift
CHANGED
|
@@ -26,12 +26,9 @@ class ScreebModule: RCTEventEmitter {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
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
|
}
|