@screeb/react-native 2.1.10 → 2.1.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.
|
@@ -28,7 +28,7 @@ class ScreebModuleModule(reactContext: ReactApplicationContext) :
|
|
|
28
28
|
@ReactMethod
|
|
29
29
|
fun initSdk(channelId: String, userId: String?, properties: ReadableMap?, hooks: ReadableMap?, initOptions: ReadableMap?, language: String?) {
|
|
30
30
|
Log.d("ScreebModule", "Called initSdk : $userId")
|
|
31
|
-
Screeb.setSecondarySDK("react-native", "2.1.
|
|
31
|
+
Screeb.setSecondarySDK("react-native", "2.1.11")
|
|
32
32
|
var map: HashMap<String, Any?>? = null
|
|
33
33
|
if (properties != null) {
|
|
34
34
|
map = properties.toHashMap()
|
|
@@ -135,7 +135,7 @@ class ScreebModuleModule(reactContext: ReactApplicationContext) :
|
|
|
135
135
|
@ReactMethod
|
|
136
136
|
fun startSurvey(surveyId: String, allowMultipleResponses: Boolean? = true, hiddenFields: ReadableMap? = null, ignoreSurveyStatus: Boolean? = true, hooks: ReadableMap? = null, language: String? = null) {
|
|
137
137
|
Log.e("ScreebModule", "Called startSurvey : $surveyId")
|
|
138
|
-
var map: HashMap<String, Any
|
|
138
|
+
var map: HashMap<String, Any?>? = null
|
|
139
139
|
if (hiddenFields != null) {
|
|
140
140
|
map = hiddenFields.toHashMap()
|
|
141
141
|
}
|
package/ios/ScreebModule.swift
CHANGED
|
@@ -13,7 +13,7 @@ class ScreebModule: RCTEventEmitter {
|
|
|
13
13
|
initOptions initOptions_: [String: Any]?,
|
|
14
14
|
language language_: String?
|
|
15
15
|
) {
|
|
16
|
-
Screeb.setSecondarySDK(name: "react-native", version: "2.1.
|
|
16
|
+
Screeb.setSecondarySDK(name: "react-native", version: "2.1.11")
|
|
17
17
|
var map: [String: AnyEncodable?] = [:]
|
|
18
18
|
if (properties_ != nil) {
|
|
19
19
|
map = self.mapToAnyEncodable(map: properties_!)
|