@poolse/react-native 2.16.2 → 2.16.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.
package/dist/index.d.cts CHANGED
@@ -1305,10 +1305,10 @@ interface CallScreenProps {
1305
1305
  * must never take a call down.
1306
1306
  */
1307
1307
  interface RingToneModule {
1308
- startRingback?: (tone: string) => void;
1309
- stopRingback?: () => void;
1310
- startRingtone?: (tone: string, vibrate?: number[], category?: string, seconds?: number) => void;
1311
- stopRingtone?: () => void;
1308
+ startRingback?: (...args: never[]) => void;
1309
+ stopRingback?: (...args: never[]) => void;
1310
+ startRingtone?: (...args: never[]) => void;
1311
+ stopRingtone?: (...args: never[]) => void;
1312
1312
  }
1313
1313
  /**
1314
1314
  * WhatsApp-style call UI: a full-screen sheet that covers the app while
package/dist/index.d.ts CHANGED
@@ -1305,10 +1305,10 @@ interface CallScreenProps {
1305
1305
  * must never take a call down.
1306
1306
  */
1307
1307
  interface RingToneModule {
1308
- startRingback?: (tone: string) => void;
1309
- stopRingback?: () => void;
1310
- startRingtone?: (tone: string, vibrate?: number[], category?: string, seconds?: number) => void;
1311
- stopRingtone?: () => void;
1308
+ startRingback?: (...args: never[]) => void;
1309
+ stopRingback?: (...args: never[]) => void;
1310
+ startRingtone?: (...args: never[]) => void;
1311
+ stopRingtone?: (...args: never[]) => void;
1312
1312
  }
1313
1313
  /**
1314
1314
  * WhatsApp-style call UI: a full-screen sheet that covers the app while
package/dist/index.js CHANGED
@@ -5875,8 +5875,8 @@ function CallScreen({
5875
5875
  const ringing = calls.phase === "ringing-out";
5876
5876
  if (!ringing && !showingIncoming) return;
5877
5877
  try {
5878
- if (ringing) inCallManager?.startRingback?.("_DEFAULT_");
5879
- else inCallManager?.startRingtone?.("_DEFAULT_");
5878
+ const start = ringing ? inCallManager?.startRingback : inCallManager?.startRingtone;
5879
+ start?.("_DEFAULT_");
5880
5880
  } catch {
5881
5881
  }
5882
5882
  return () => {