@screeb/react-native 2.1.2 → 2.1.3

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.
@@ -187,8 +187,10 @@ class ScreebModuleModule(reactContext: ReactApplicationContext) :
187
187
 
188
188
  @ReactMethod
189
189
  fun onHookResult(hookId: String, payload: ReadableMap?){
190
- val result = payload?.toHashMap()["result"] as Any?
191
- Screeb.onHookResult(hookId, result)
190
+ if (payload != null) {
191
+ val result = payload!!.toHashMap()["result"] as Any?
192
+ Screeb.onHookResult(hookId, result)
193
+ }
192
194
  }
193
195
 
194
196
  @ReactMethod
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@screeb/react-native",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "Continuous Product Discovery",
5
5
  "scripts": {
6
6
  "clean": "rm -rf lib/",