@cometchat/chat-uikit-react-native
Version:
Ready-to-use Chat UI Components for React Native
18 lines • 611 B
JavaScript
let isCallingPackageInstalled, CometChatCalls;
try {
// Attempt to require the package
CometChatCalls = require("@cometchat/calls-sdk-react-native")?.CometChatCalls;
isCallingPackageInstalled = true;
// If no error is thrown, the package is installed
// console.log('calls sdk is installed.');
}
catch (error) {
isCallingPackageInstalled = false;
// If an error is thrown, the package is not installed
// console.log('calls sdk is not installed.');
}
export const CallingPackage = {
isCallingPackageInstalled,
CometChatCalls,
};
//# sourceMappingURL=CallingPackage.js.map