@stream-io/video-react-native-sdk 0.5.5 → 0.5.7

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.
Files changed (134) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/commonjs/components/Call/CallControls/ScreenShareButton.js +3 -1
  3. package/dist/commonjs/components/Call/CallControls/ScreenShareButton.js.map +1 -1
  4. package/dist/commonjs/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  5. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js +1 -1
  6. package/dist/commonjs/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  7. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js +2 -2
  8. package/dist/commonjs/components/Participant/FloatingParticipantView/FloatingView/index.js.map +1 -1
  9. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js +1 -3
  10. package/dist/commonjs/components/Participant/FloatingParticipantView/index.js.map +1 -1
  11. package/dist/commonjs/hooks/internal/useCallMediaStreamCleanup.js +1 -1
  12. package/dist/commonjs/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  13. package/dist/commonjs/utils/index.js.map +1 -1
  14. package/dist/commonjs/utils/internal/{optionalLibs.js → optionallibs/gestureHandler.js} +2 -13
  15. package/dist/commonjs/utils/internal/optionallibs/gestureHandler.js.map +1 -0
  16. package/dist/commonjs/utils/internal/optionallibs/index.js +28 -0
  17. package/dist/commonjs/utils/internal/optionallibs/index.js.map +1 -0
  18. package/dist/commonjs/utils/internal/optionallibs/reanimated.js +18 -0
  19. package/dist/commonjs/utils/internal/optionallibs/reanimated.js.map +1 -0
  20. package/dist/commonjs/utils/push/android.js.map +1 -1
  21. package/dist/commonjs/utils/push/libs/callkeep.js +14 -0
  22. package/dist/commonjs/utils/push/libs/callkeep.js.map +1 -0
  23. package/dist/commonjs/utils/push/libs/expoNotifications.js +17 -0
  24. package/dist/commonjs/utils/push/libs/expoNotifications.js.map +1 -0
  25. package/dist/commonjs/utils/push/libs/expoTaskManager.js +17 -0
  26. package/dist/commonjs/utils/push/libs/expoTaskManager.js.map +1 -0
  27. package/dist/commonjs/utils/push/libs/firebaseMessaging.js +17 -0
  28. package/dist/commonjs/utils/push/libs/firebaseMessaging.js.map +1 -0
  29. package/dist/commonjs/utils/push/libs/index.js +72 -0
  30. package/dist/commonjs/utils/push/libs/index.js.map +1 -0
  31. package/dist/commonjs/utils/push/libs/iosPushNotification.js +17 -0
  32. package/dist/commonjs/utils/push/libs/iosPushNotification.js.map +1 -0
  33. package/dist/commonjs/utils/push/libs/voipPushNotification.js +17 -0
  34. package/dist/commonjs/utils/push/libs/voipPushNotification.js.map +1 -0
  35. package/dist/commonjs/utils/push/utils.js.map +1 -1
  36. package/dist/commonjs/utils/setClientDetails.js +3 -3
  37. package/dist/commonjs/utils/setClientDetails.js.map +1 -1
  38. package/dist/commonjs/version.js +1 -1
  39. package/dist/module/components/Call/CallControls/ScreenShareButton.js +3 -1
  40. package/dist/module/components/Call/CallControls/ScreenShareButton.js.map +1 -1
  41. package/dist/module/components/Call/CallLayout/CallParticipantsGrid.js.map +1 -1
  42. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js +1 -1
  43. package/dist/module/components/Call/CallLayout/CallParticipantsSpotlight.js.map +1 -1
  44. package/dist/module/components/Participant/FloatingParticipantView/FloatingView/index.js +1 -1
  45. package/dist/module/components/Participant/FloatingParticipantView/index.js +1 -3
  46. package/dist/module/components/Participant/FloatingParticipantView/index.js.map +1 -1
  47. package/dist/module/hooks/internal/useCallMediaStreamCleanup.js +1 -1
  48. package/dist/module/hooks/useAndroidKeepCallAliveEffect.js.map +1 -1
  49. package/dist/module/utils/index.js.map +1 -1
  50. package/dist/module/utils/internal/optionallibs/gestureHandler.js +11 -0
  51. package/dist/module/utils/internal/optionallibs/gestureHandler.js.map +1 -0
  52. package/dist/module/utils/internal/optionallibs/index.js +3 -0
  53. package/dist/module/utils/internal/optionallibs/index.js.map +1 -0
  54. package/dist/module/utils/internal/optionallibs/reanimated.js +11 -0
  55. package/dist/module/utils/internal/optionallibs/reanimated.js.map +1 -0
  56. package/dist/module/utils/push/android.js.map +1 -1
  57. package/dist/module/utils/push/libs/callkeep.js +8 -0
  58. package/dist/module/utils/push/libs/callkeep.js.map +1 -0
  59. package/dist/module/utils/push/libs/expoNotifications.js +11 -0
  60. package/dist/module/utils/push/libs/expoNotifications.js.map +1 -0
  61. package/dist/module/utils/push/libs/expoTaskManager.js +11 -0
  62. package/dist/module/utils/push/libs/expoTaskManager.js.map +1 -0
  63. package/dist/module/utils/push/libs/firebaseMessaging.js +11 -0
  64. package/dist/module/utils/push/libs/firebaseMessaging.js.map +1 -0
  65. package/dist/module/utils/push/libs/index.js +12 -0
  66. package/dist/module/utils/push/libs/index.js.map +1 -0
  67. package/dist/module/utils/push/libs/iosPushNotification.js +11 -0
  68. package/dist/module/utils/push/libs/iosPushNotification.js.map +1 -0
  69. package/dist/module/utils/push/libs/voipPushNotification.js +11 -0
  70. package/dist/module/utils/push/libs/voipPushNotification.js.map +1 -0
  71. package/dist/module/utils/push/utils.js.map +1 -1
  72. package/dist/module/utils/setClientDetails.js +3 -3
  73. package/dist/module/utils/setClientDetails.js.map +1 -1
  74. package/dist/module/version.js +1 -1
  75. package/dist/typescript/components/Call/CallControls/ScreenShareButton.d.ts.map +1 -1
  76. package/dist/typescript/components/Call/CallLayout/CallParticipantsGrid.d.ts.map +1 -1
  77. package/dist/typescript/components/Participant/FloatingParticipantView/index.d.ts.map +1 -1
  78. package/dist/typescript/utils/index.d.ts.map +1 -1
  79. package/dist/typescript/utils/internal/optionallibs/gestureHandler.d.ts +3 -0
  80. package/dist/typescript/utils/internal/optionallibs/gestureHandler.d.ts.map +1 -0
  81. package/dist/typescript/utils/internal/optionallibs/index.d.ts +3 -0
  82. package/dist/typescript/utils/internal/optionallibs/index.d.ts.map +1 -0
  83. package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts +4 -0
  84. package/dist/typescript/utils/internal/optionallibs/reanimated.d.ts.map +1 -0
  85. package/dist/typescript/utils/push/libs/callkeep.d.ts +4 -0
  86. package/dist/typescript/utils/push/libs/callkeep.d.ts.map +1 -0
  87. package/dist/typescript/utils/push/libs/expoNotifications.d.ts +3 -0
  88. package/dist/typescript/utils/push/libs/expoNotifications.d.ts.map +1 -0
  89. package/dist/typescript/utils/push/libs/expoTaskManager.d.ts +3 -0
  90. package/dist/typescript/utils/push/libs/expoTaskManager.d.ts.map +1 -0
  91. package/dist/typescript/utils/push/libs/firebaseMessaging.d.ts +4 -0
  92. package/dist/typescript/utils/push/libs/firebaseMessaging.d.ts.map +1 -0
  93. package/dist/typescript/utils/push/libs/index.d.ts +7 -0
  94. package/dist/typescript/utils/push/libs/index.d.ts.map +1 -0
  95. package/dist/typescript/utils/push/libs/iosPushNotification.d.ts +3 -0
  96. package/dist/typescript/utils/push/libs/iosPushNotification.d.ts.map +1 -0
  97. package/dist/typescript/utils/push/libs/voipPushNotification.d.ts +4 -0
  98. package/dist/typescript/utils/push/libs/voipPushNotification.d.ts.map +1 -0
  99. package/dist/typescript/version.d.ts +1 -1
  100. package/package.json +1 -1
  101. package/src/components/Call/CallControls/ScreenShareButton.tsx +1 -0
  102. package/src/components/Call/CallLayout/CallParticipantsGrid.tsx +2 -1
  103. package/src/components/Call/CallLayout/CallParticipantsSpotlight.tsx +2 -2
  104. package/src/components/Participant/FloatingParticipantView/FloatingView/index.ts +1 -1
  105. package/src/components/Participant/FloatingParticipantView/index.tsx +0 -2
  106. package/src/hooks/internal/useCallMediaStreamCleanup.ts +1 -1
  107. package/src/hooks/useAndroidKeepCallAliveEffect.ts +1 -1
  108. package/src/utils/index.ts +4 -2
  109. package/src/utils/internal/{optionalLibs.ts → optionallibs/gestureHandler.ts} +0 -13
  110. package/src/utils/internal/optionallibs/index.ts +2 -0
  111. package/src/utils/internal/optionallibs/reanimated.ts +14 -0
  112. package/src/utils/push/android.ts +6 -6
  113. package/src/utils/push/libs/callkeep.ts +12 -0
  114. package/src/utils/push/libs/expoNotifications.ts +16 -0
  115. package/src/utils/push/libs/expoTaskManager.ts +16 -0
  116. package/src/utils/push/libs/firebaseMessaging.ts +18 -0
  117. package/src/utils/push/libs/index.ts +11 -0
  118. package/src/utils/push/libs/iosPushNotification.ts +18 -0
  119. package/src/utils/push/libs/voipPushNotification.ts +17 -0
  120. package/src/utils/push/utils.ts +1 -1
  121. package/src/utils/setClientDetails.ts +3 -3
  122. package/src/version.ts +1 -1
  123. package/dist/commonjs/utils/internal/optionalLibs.js.map +0 -1
  124. package/dist/commonjs/utils/push/libs.js +0 -72
  125. package/dist/commonjs/utils/push/libs.js.map +0 -1
  126. package/dist/module/utils/internal/optionalLibs.js +0 -21
  127. package/dist/module/utils/internal/optionalLibs.js.map +0 -1
  128. package/dist/module/utils/push/libs.js +0 -61
  129. package/dist/module/utils/push/libs.js.map +0 -1
  130. package/dist/typescript/utils/internal/optionalLibs.d.ts +0 -6
  131. package/dist/typescript/utils/internal/optionalLibs.d.ts.map +0 -1
  132. package/dist/typescript/utils/push/libs.d.ts +0 -16
  133. package/dist/typescript/utils/push/libs.d.ts.map +0 -1
  134. package/src/utils/push/libs.ts +0 -96
@@ -1,61 +0,0 @@
1
- let callkeep;
2
- let messaging;
3
- let voipPushNotification;
4
- let expoNotificationsLib;
5
- let expoTaskManagerLib;
6
- let pushNotificationIosLib;
7
- try {
8
- callkeep = require('react-native-callkeep').default;
9
- } catch (e) {}
10
- try {
11
- messaging = require('@react-native-firebase/messaging').default;
12
- } catch (e) {}
13
- try {
14
- voipPushNotification = require('react-native-voip-push-notification').default;
15
- } catch (e) {}
16
- try {
17
- expoNotificationsLib = require('expo-notifications');
18
- } catch (e) {}
19
- try {
20
- expoTaskManagerLib = require('expo-task-manager');
21
- } catch (e) {}
22
- try {
23
- pushNotificationIosLib = require('@react-native-community/push-notification-ios').default;
24
- } catch (e) {}
25
- export function getExpoNotificationsLib() {
26
- if (!expoNotificationsLib) {
27
- throw Error('expo-notifications library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/notifications/ for installation instructions');
28
- }
29
- return expoNotificationsLib;
30
- }
31
- export function getExpoTaskManagerLib() {
32
- if (!expoTaskManagerLib) {
33
- throw Error('expo-task-manager library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/task-manager/ for installation instructions');
34
- }
35
- return expoTaskManagerLib;
36
- }
37
- export function getPushNotificationIosLib() {
38
- if (!pushNotificationIosLib) {
39
- throw Error('@react-native-community/push-notification-ios library is not installed. Please install it using "yarn add @react-native-community/push-notification-ios" or "npm i @react-native-community/push-notification-ios --save"');
40
- }
41
- return pushNotificationIosLib;
42
- }
43
- export function getCallKeepLib() {
44
- if (!callkeep) {
45
- throw Error('react-native-callkeep library is not installed. Please see https://github.com/react-native-webrtc/react-native-callkeep#Installation for installation instructions');
46
- }
47
- return callkeep;
48
- }
49
- export function getFirebaseMessagingLib() {
50
- if (!messaging) {
51
- throw Error('react-native-firebase library is not installed. Please see https://rnfirebase.io/messaging/usage#installation for installation instructions');
52
- }
53
- return messaging;
54
- }
55
- export function getVoipPushNotificationLib() {
56
- if (!voipPushNotification) {
57
- throw Error("react-native-voip-push-notification library is not installed. Please install it using 'yarn add react-native-voip-push-notification' or 'npm i react-native-voip-push-notification --save'");
58
- }
59
- return voipPushNotification;
60
- }
61
- //# sourceMappingURL=libs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["callkeep","messaging","voipPushNotification","expoNotificationsLib","expoTaskManagerLib","pushNotificationIosLib","require","default","e","getExpoNotificationsLib","Error","getExpoTaskManagerLib","getPushNotificationIosLib","getCallKeepLib","getFirebaseMessagingLib","getVoipPushNotificationLib"],"sourceRoot":"../../../../src","sources":["utils/push/libs.ts"],"mappings":"AAWA,IAAIA,QAAoC;AACxC,IAAIC,SAA4C;AAChD,IAAIC,oBAA0D;AAC9D,IAAIC,oBAAsD;AAC1D,IAAIC,kBAAkD;AACtD,IAAIC,sBAA0D;AAE9D,IAAI;EACFL,QAAQ,GAAGM,OAAO,CAAC,uBAAuB,CAAC,CAACC,OAAO;AACrD,CAAC,CAAC,OAAOC,CAAC,EAAE,CAAC;AAEb,IAAI;EACFP,SAAS,GAAGK,OAAO,CAAC,kCAAkC,CAAC,CAACC,OAAO;AACjE,CAAC,CAAC,OAAOC,CAAC,EAAE,CAAC;AAEb,IAAI;EACFN,oBAAoB,GAAGI,OAAO,CAAC,qCAAqC,CAAC,CAACC,OAAO;AAC/E,CAAC,CAAC,OAAOC,CAAC,EAAE,CAAC;AAEb,IAAI;EACFL,oBAAoB,GAAGG,OAAO,CAAC,oBAAoB,CAAC;AACtD,CAAC,CAAC,OAAOE,CAAC,EAAE,CAAC;AAEb,IAAI;EACFJ,kBAAkB,GAAGE,OAAO,CAAC,mBAAmB,CAAC;AACnD,CAAC,CAAC,OAAOE,CAAC,EAAE,CAAC;AAEb,IAAI;EACFH,sBAAsB,GACpBC,OAAO,CAAC,+CAA+C,CAAC,CAACC,OAAO;AACpE,CAAC,CAAC,OAAOC,CAAC,EAAE,CAAC;AAEb,OAAO,SAASC,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACN,oBAAoB,EAAE;IACzB,MAAMO,KAAK,CACT,gJACF,CAAC;EACH;EACA,OAAOP,oBAAoB;AAC7B;AAEA,OAAO,SAASQ,qBAAqBA,CAAA,EAAG;EACtC,IAAI,CAACP,kBAAkB,EAAE;IACvB,MAAMM,KAAK,CACT,8IACF,CAAC;EACH;EACA,OAAON,kBAAkB;AAC3B;AAEA,OAAO,SAASQ,yBAAyBA,CAAA,EAAG;EAC1C,IAAI,CAACP,sBAAsB,EAAE;IAC3B,MAAMK,KAAK,CACT,0NACF,CAAC;EACH;EACA,OAAOL,sBAAsB;AAC/B;AAEA,OAAO,SAASQ,cAAcA,CAAA,EAAG;EAC/B,IAAI,CAACb,QAAQ,EAAE;IACb,MAAMU,KAAK,CACT,oKACF,CAAC;EACH;EACA,OAAOV,QAAQ;AACjB;AAEA,OAAO,SAASc,uBAAuBA,CAAA,EAAG;EACxC,IAAI,CAACb,SAAS,EAAE;IACd,MAAMS,KAAK,CACT,6IACF,CAAC;EACH;EACA,OAAOT,SAAS;AAClB;AAEA,OAAO,SAASc,0BAA0BA,CAAA,EAAG;EAC3C,IAAI,CAACb,oBAAoB,EAAE;IACzB,MAAMQ,KAAK,CACT,4LACF,CAAC;EACH;EACA,OAAOR,oBAAoB;AAC7B"}
@@ -1,6 +0,0 @@
1
- /// <reference types="react-native-reanimated" />
2
- export type GestureHandlerType = typeof import('react-native-gesture-handler');
3
- export type ReanimatedType = typeof import('react-native-reanimated');
4
- export declare const getReanimatedLib: (onPackageNotFound?: () => void) => typeof import("react-native-reanimated") | undefined;
5
- export declare const getGestureHandlerLib: (onPackageNotFound?: () => void) => typeof import("react-native-gesture-handler") | undefined;
6
- //# sourceMappingURL=optionalLibs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"optionalLibs.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/optionalLibs.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,kBAAkB,GAAG,cAAc,8BAA8B,CAAC,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,cAAc,yBAAyB,CAAC,CAAC;AAatE,eAAO,MAAM,gBAAgB,0FAK5B,CAAC;AAEF,eAAO,MAAM,oBAAoB,+FAKhC,CAAC"}
@@ -1,16 +0,0 @@
1
- /// <reference types="react-native-callkeep" />
2
- /// <reference types="react-native-voip-push-notification" />
3
- export type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
4
- export type RNCallKeepType = typeof import('react-native-callkeep').default;
5
- export type FirebaseMessagingType = typeof import('@react-native-firebase/messaging').default;
6
- export type VoipPushNotificationType = typeof import('react-native-voip-push-notification').default;
7
- export type ExpoNotificationsLib = typeof import('expo-notifications');
8
- export type ExpoTaskManagerLib = typeof import('expo-task-manager');
9
- export type PushNotificationIosLib = typeof import('@react-native-community/push-notification-ios').default;
10
- export declare function getExpoNotificationsLib(): typeof import("expo-notifications");
11
- export declare function getExpoTaskManagerLib(): typeof import("expo-task-manager");
12
- export declare function getPushNotificationIosLib(): import("@react-native-community/push-notification-ios").PushNotificationIOSStatic;
13
- export declare function getCallKeepLib(): typeof import("react-native-callkeep").default;
14
- export declare function getFirebaseMessagingLib(): import("@react-native-firebase/app").ReactNativeFirebase.FirebaseModuleWithStatics<import("@react-native-firebase/messaging").FirebaseMessagingTypes.Module, import("@react-native-firebase/messaging").FirebaseMessagingTypes.Statics>;
15
- export declare function getVoipPushNotificationLib(): typeof import("react-native-voip-push-notification").default;
16
- //# sourceMappingURL=libs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"libs.d.ts","sourceRoot":"","sources":["../../../../src/utils/push/libs.ts"],"names":[],"mappings":";;AAAA,YAAY,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC/E,MAAM,MAAM,cAAc,GAAG,cAAc,uBAAuB,EAAE,OAAO,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAC/B,cAAc,kCAAkC,EAAE,OAAO,CAAC;AAC5D,MAAM,MAAM,wBAAwB,GAClC,cAAc,qCAAqC,EAAE,OAAO,CAAC;AAC/D,MAAM,MAAM,oBAAoB,GAAG,cAAc,oBAAoB,CAAC,CAAC;AACvE,MAAM,MAAM,kBAAkB,GAAG,cAAc,mBAAmB,CAAC,CAAC;AACpE,MAAM,MAAM,sBAAsB,GAChC,cAAc,+CAA+C,EAAE,OAAO,CAAC;AAkCzE,wBAAgB,uBAAuB,wCAOtC;AAED,wBAAgB,qBAAqB,uCAOpC;AAED,wBAAgB,yBAAyB,sFAOxC;AAED,wBAAgB,cAAc,mDAO7B;AAED,wBAAgB,uBAAuB,4OAOtC;AAED,wBAAgB,0BAA0B,iEAOzC"}
@@ -1,96 +0,0 @@
1
- export type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
2
- export type RNCallKeepType = typeof import('react-native-callkeep').default;
3
- export type FirebaseMessagingType =
4
- typeof import('@react-native-firebase/messaging').default;
5
- export type VoipPushNotificationType =
6
- typeof import('react-native-voip-push-notification').default;
7
- export type ExpoNotificationsLib = typeof import('expo-notifications');
8
- export type ExpoTaskManagerLib = typeof import('expo-task-manager');
9
- export type PushNotificationIosLib =
10
- typeof import('@react-native-community/push-notification-ios').default;
11
-
12
- let callkeep: RNCallKeepType | undefined;
13
- let messaging: FirebaseMessagingType | undefined;
14
- let voipPushNotification: VoipPushNotificationType | undefined;
15
- let expoNotificationsLib: ExpoNotificationsLib | undefined;
16
- let expoTaskManagerLib: ExpoTaskManagerLib | undefined;
17
- let pushNotificationIosLib: PushNotificationIosLib | undefined;
18
-
19
- try {
20
- callkeep = require('react-native-callkeep').default;
21
- } catch (e) {}
22
-
23
- try {
24
- messaging = require('@react-native-firebase/messaging').default;
25
- } catch (e) {}
26
-
27
- try {
28
- voipPushNotification = require('react-native-voip-push-notification').default;
29
- } catch (e) {}
30
-
31
- try {
32
- expoNotificationsLib = require('expo-notifications');
33
- } catch (e) {}
34
-
35
- try {
36
- expoTaskManagerLib = require('expo-task-manager');
37
- } catch (e) {}
38
-
39
- try {
40
- pushNotificationIosLib =
41
- require('@react-native-community/push-notification-ios').default;
42
- } catch (e) {}
43
-
44
- export function getExpoNotificationsLib() {
45
- if (!expoNotificationsLib) {
46
- throw Error(
47
- 'expo-notifications library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/notifications/ for installation instructions',
48
- );
49
- }
50
- return expoNotificationsLib;
51
- }
52
-
53
- export function getExpoTaskManagerLib() {
54
- if (!expoTaskManagerLib) {
55
- throw Error(
56
- 'expo-task-manager library is not installed. Please see https://docs.expo.dev/versions/latest/sdk/task-manager/ for installation instructions',
57
- );
58
- }
59
- return expoTaskManagerLib;
60
- }
61
-
62
- export function getPushNotificationIosLib() {
63
- if (!pushNotificationIosLib) {
64
- throw Error(
65
- '@react-native-community/push-notification-ios library is not installed. Please install it using "yarn add @react-native-community/push-notification-ios" or "npm i @react-native-community/push-notification-ios --save"',
66
- );
67
- }
68
- return pushNotificationIosLib;
69
- }
70
-
71
- export function getCallKeepLib() {
72
- if (!callkeep) {
73
- throw Error(
74
- 'react-native-callkeep library is not installed. Please see https://github.com/react-native-webrtc/react-native-callkeep#Installation for installation instructions',
75
- );
76
- }
77
- return callkeep;
78
- }
79
-
80
- export function getFirebaseMessagingLib() {
81
- if (!messaging) {
82
- throw Error(
83
- 'react-native-firebase library is not installed. Please see https://rnfirebase.io/messaging/usage#installation for installation instructions',
84
- );
85
- }
86
- return messaging;
87
- }
88
-
89
- export function getVoipPushNotificationLib() {
90
- if (!voipPushNotification) {
91
- throw Error(
92
- "react-native-voip-push-notification library is not installed. Please install it using 'yarn add react-native-voip-push-notification' or 'npm i react-native-voip-push-notification --save'",
93
- );
94
- }
95
- return voipPushNotification;
96
- }