diff --git a/README.md b/README.md index d8e786f..5bc9287 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![SupportedLanguages](https://img.shields.io/badge/Platforms-iOS%20%7C%20%20Android-green.svg)](https://www.zoho.com/salesiq/help/developer-section/react-native-sdk-installation.html) [![Version](https://img.shields.io/badge/version-10.0.0-blue.svg)](https://mobilisten.io/) [![Mobilisten NPM CD](https://github.com/zoho/SalesIQ-Mobilisten-ReactNative/workflows/Mobilisten%20NPM%20CD/badge.svg)](https://github.com/zoho/SalesIQ-Mobilisten-ReactNative/actions) +[![SupportedLanguages](https://img.shields.io/badge/Platforms-iOS%20%7C%20%20Android-green.svg)](https://www.zoho.com/salesiq/help/developer-section/react-native-sdk-installation.html) [![Version](https://img.shields.io/badge/version-10.0.1-blue.svg)](https://mobilisten.io/) [![Mobilisten NPM CD](https://github.com/zoho/SalesIQ-Mobilisten-ReactNative/workflows/Mobilisten%20NPM%20CD/badge.svg)](https://github.com/zoho/SalesIQ-Mobilisten-ReactNative/actions) # React Native module for SalesIQ Mobilisten SDK diff --git a/android/build.gradle b/android/build.gradle index 55c83e6..fc1ce0b 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -45,5 +45,5 @@ repositories { dependencies { implementation 'com.facebook.react:react-native:+' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' - api 'com.zoho.salesiq:mobilisten:8.0.3' + api 'com.zoho.salesiq:mobilisten:8.0.4' } diff --git a/package.json b/package.json index 17c760d..35a046a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-zohosalesiq-mobilisten", - "version": "10.0.0", + "version": "10.0.1", "description": "A React Native module for the ZohoSalesIQ Mobilisten SDK", "main": "lib/commonjs/index", "module": "lib/module/index", diff --git a/src/components/index.ts b/src/components/index.ts index c54620f..cfcbbc8 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -120,7 +120,7 @@ export const ZSIQWrapper = { fetchAttenderImage: function (atttenderId, fetchDefaultImage, callback) { RNZohoSalesIQ.fetchAttenderImage(atttenderId, fetchDefaultImage, callback); }, - registerVisitor: function (visitorId, callback) { + registerVisitor: function (visitorId, callback = () => {}) { RNZohoSalesIQ.registerVisitor(visitorId, callback); }, setThemeColorforiOS: function (colorCode) { diff --git a/src/types/ZSIQWrapperTypes.ts b/src/types/ZSIQWrapperTypes.ts index cd95de2..4f2f2a2 100644 --- a/src/types/ZSIQWrapperTypes.ts +++ b/src/types/ZSIQWrapperTypes.ts @@ -350,7 +350,7 @@ export interface ZSIQWrapperTypes { */ registerVisitor: ( visitorId: string, - callback: (error: CallbackError, result: boolean) => void + callback?: (error: CallbackError, result: boolean) => void ) => void; /**