Skip to content

Commit 913a01d

Browse files
Merge pull request #19 from CleverTap/develop
Resolve NPM Publish Warnings
2 parents b8d3a71 + 0fc49fa commit 913a01d

File tree

4 files changed

+9492
-10
lines changed

4 files changed

+9492
-10
lines changed

example/src/screens/DialerScreen.tsx

+4-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
Image,
66
TextInput,
77
Button,
8-
BackHandler,
98
Alert,
109
Keyboard,
1110
Platform,
@@ -81,10 +80,9 @@ const DialerScreen = ({ route, navigation }: any) => {
8180
button: 'Some text',
8281
};
8382
try {
84-
VIForegroundService.getInstance()
85-
.startService(notificationConfig)
83+
VIForegroundService.startService(notificationConfig)
8684
.then(() => console.log('Service started'))
87-
.catch((err) => console.error(err));
85+
.catch((err: any) => console.error(err));
8886
} catch (e) {
8987
console.error(e);
9088
}
@@ -142,10 +140,9 @@ const DialerScreen = ({ route, navigation }: any) => {
142140
if (canStart) {
143141
startForegroundService();
144142
} else {
145-
VIForegroundService.getInstance()
146-
.stopService()
143+
VIForegroundService.stopService()
147144
.then(() => console.log('Service stopped'))
148-
.catch((err) => console.error(err));
145+
.catch((err: any) => console.error(err));
149146
}
150147
setForegroundServiceRunning(canStart);
151148
}}

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
"engines": {
8686
"node": ">= 16.0.0"
8787
},
88-
"packageManager": "^[email protected]",
8988
"jest": {
9089
"preset": "react-native",
9190
"modulePathIgnorePatterns": [

src/models/CallEventResult.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { CallEventUtil, type CallEvent } from './CallEvent';
55
class CallEventResult {
66
direction: CallDirection;
77
callDetails: CallDetails;
8-
callEvent?: CallEvent;
8+
callEvent?: CallEvent | null;
99

1010
constructor(
1111
direction: CallDirection,
1212
callDetails: CallDetails,
13-
callEvent?: CallEvent
13+
callEvent?: CallEvent | null
1414
) {
1515
this.direction = direction;
1616
this.callDetails = callDetails;

0 commit comments

Comments
 (0)