You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I'm currently having this error trying to import ZohoSalesIQ:
ReferenceError: Can't find variable: Platform
my Code :
import{ZohoSalesIQ}from'react-native-zohosalesiq-mobilisten';ZohoSales={setKeys: asyncfunction(){letappKey="...";letaccessKey="...";ZohoSalesIQ.initWithCallback(appKey,accessKey,(success)=>{if(success){ZohoSalesIQ.setLauncherVisibility(true);}else{console.log("Zoho Error: no se cargo chat")}});},openChat: asyncfunction(){console.log("Zoho: Abrimos Chat")ZohoSalesIQ.openChat();}}exportdefaultZohoSales;
After a trace, the error occurs right at the import of ZohoSalesIQ:
The message "ReferenceError: Can't find variable: Platform" refers to the file zohosalesiqJSWrapper.js in ./node_modules/react-native-zohosalesiq-mobilisten/components/. where it is using the following code in line 385:
Thank you for your patience. We have fixed this issue.
We recommend you update to the latest version 8.0.5, and verify. Please feel free to write back to us at (support@zohosalesiq.com) in case of any issues.
Hi! I'm currently having this error trying to import ZohoSalesIQ:
my Code :
After a trace, the error occurs right at the import of ZohoSalesIQ:
The message "ReferenceError: Can't find variable: Platform" refers to the file zohosalesiqJSWrapper.js in ./node_modules/react-native-zohosalesiq-mobilisten/components/. where it is using the following code in line 385:
But it fails to get the Platform from react-native as it is not being imported in this file.
By importing Platform into this file. works correctly!!
but I guess should not make this changes at the node_modules level.
thanks :)
Node: v18.17.0
npm: 9.6.7
packages:
"expo": "~50.0.5",
"react-native": "0.73.4",
"react-native-zohosalesiq-mobilisten": "^8.0.4",
The text was updated successfully, but these errors were encountered: