rns-nativecall 0.0.8 → 0.1.0

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # RNS Native Call
2
2
 
3
- RNS Native Call is a React Native package that provides fully native VoIP call handling on Android and iOS. It supports self-managed calls, custom ringtone handling, video calls, and allows dismissing native call UI programmatically. Fully TypeScript-ready.
3
+ RNS Native Call is a React Native package that provides fully native VoIP call handling on Android and iOS. It supports self-managed calls, video calls, and allows dismissing native call UI programmatically.
4
4
 
5
5
  ---
6
6
 
@@ -10,10 +10,8 @@ RNS Native Call is a React Native package that provides fully native VoIP call h
10
10
  * Support for video and audio calls.
11
11
  * Self-managed calls on Android (prevents polluting the device call log).
12
12
  * Prevents iOS call log from being saved using `includesCallsInRecents = NO`.
13
- * Control ringtone per call.
14
13
  * Subscribe to call events (accepted, rejected, failed).
15
14
  * Cross-platform (Android & iOS) ready.
16
- * TypeScript types included.
17
15
 
18
16
  ---
19
17
 
@@ -34,14 +32,12 @@ If you are using **Expo managed workflow**, the package provides a plugin that a
34
32
  In your `app.json` / `app.config.js`:
35
33
 
36
34
  ```js
37
- import withRaiidrVoip from 'rns-nativecall/withRaiidrVoip';
38
-
39
35
  export default {
40
36
  expo: {
41
37
  name: 'YourApp',
42
38
  slug: 'your-app',
43
39
  plugins: [
44
- withRaiidrVoip
40
+ "rns-nativecall"
45
41
  ],
46
42
  },
47
43
  };
@@ -78,7 +74,7 @@ cd ios
78
74
  pod install
79
75
  ```
80
76
 
81
- 2. CallKit is automatically used, and call log entries are prevented using:
77
+ 2. CallKit is automatically used, so you need to enable it in your project, thats all and call log entries are prevented using:
82
78
 
83
79
  ```objc
84
80
  config.includesCallsInRecents = NO;
@@ -102,7 +98,7 @@ const unsubscribe = CallHandler.subscribe(
102
98
 
103
99
  // Display an incoming call
104
100
  await CallHandler.displayCall(
105
- 'uuid-string',
101
+ 'uuid-string', // use uuid.v4();
106
102
  '+1234567890',
107
103
  'John Doe',
108
104
  true, // hasVideo
@@ -166,20 +162,6 @@ The Expo plugin ensures these are automatically added to `AndroidManifest.xml`.
166
162
 
167
163
  ---
168
164
 
169
- ## TypeScript Support
170
-
171
- Types are included. Example:
172
-
173
- ```ts
174
- import CallHandler, { CallData, CallAcceptedCallback } from 'rns-nativecall';
175
-
176
- const onAccept: CallAcceptedCallback = (data: CallData) => {
177
- console.log('Accepted:', data.callUUID);
178
- };
179
- ```
180
-
181
- ---
182
-
183
165
  ## Notes
184
166
 
185
167
  * Android uses `Connection.CAPABILITY_SELF_MANAGED` to prevent calls from showing in the system call log.
package/app.plugin.js CHANGED
@@ -1,6 +1,6 @@
1
1
  ////Users/bush/Desktop/Apps/Raiidr/package/app.plugin.js
2
- const withRaiidrVoip = require('./withRaiidrVoip');
2
+ const withNativeCallVoip = require('./withNativeCallVoip');
3
3
 
4
4
  module.exports = function (config) {
5
- return withRaiidrVoip(config);
5
+ return withNativeCallVoip(config);
6
6
  };
package/index.js CHANGED
@@ -4,8 +4,6 @@ import {
4
4
  NativeEventEmitter,
5
5
  PermissionsAndroid,
6
6
  Platform,
7
- Linking,
8
- Alert
9
7
  } from 'react-native';
10
8
 
11
9
  const { CallModule } = NativeModules;
@@ -53,7 +51,7 @@ export const CallHandler = {
53
51
  shouldRing
54
52
  );
55
53
  } catch (e) {
56
- console.error("Native Call Error:", e);
54
+ // console.log("Native Call Error:", e);
57
55
  return false;
58
56
  }
59
57
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rns-nativecall",
3
- "version": "0.0.8",
3
+ "version": "0.1.0",
4
4
  "description": "RNS nativecall component with native Android/iOS for handling native call ui, when app is not open or open.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -42,7 +42,7 @@
42
42
  "react-native.config.js",
43
43
  "README.md",
44
44
  "rns-nativecall.podspec",
45
- "withRaiidrVoip.js"
45
+ "withNativeCallVoip.js"
46
46
  ],
47
47
  "peerDependencies": {
48
48
  "react-native": "*",
@@ -1,4 +1,4 @@
1
- ///Users/bush/Desktop/Apps/Raiidr/package/withRaiidrVoip.js
1
+ ///Users/bush/Desktop/Apps/Raiidr/package/withNativeCallVoip.js
2
2
  const { withAndroidManifest, withInfoPlist, withPlugins } = require('@expo/config-plugins');
3
3
 
4
4
  /**