Skip to content

Commit

Permalink
Merge pull request #19 from CleverTap/develop
Browse files Browse the repository at this point in the history
Resolve NPM Publish Warnings
  • Loading branch information
shivamsharma2710 authored Jun 24, 2024
2 parents d42f636 + bca8dd2 commit d229253
Show file tree
Hide file tree
Showing 4 changed files with 9,492 additions and 10 deletions.
11 changes: 4 additions & 7 deletions example/src/screens/DialerScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
Image,
TextInput,
Button,
BackHandler,
Alert,
Keyboard,
Platform,
Expand Down Expand Up @@ -81,10 +80,9 @@ const DialerScreen = ({ route, navigation }: any) => {
button: 'Some text',
};
try {
VIForegroundService.getInstance()
.startService(notificationConfig)
VIForegroundService.startService(notificationConfig)
.then(() => console.log('Service started'))
.catch((err) => console.error(err));
.catch((err: any) => console.error(err));
} catch (e) {
console.error(e);
}
Expand Down Expand Up @@ -142,10 +140,9 @@ const DialerScreen = ({ route, navigation }: any) => {
if (canStart) {
startForegroundService();
} else {
VIForegroundService.getInstance()
.stopService()
VIForegroundService.stopService()
.then(() => console.log('Service stopped'))
.catch((err) => console.error(err));
.catch((err: any) => console.error(err));
}
setForegroundServiceRunning(canStart);
}}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"engines": {
"node": ">= 16.0.0"
},
"packageManager": "^[email protected]",
"jest": {
"preset": "react-native",
"modulePathIgnorePatterns": [
Expand Down
4 changes: 2 additions & 2 deletions src/models/CallEventResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import { CallEventUtil, type CallEvent } from './CallEvent';
class CallEventResult {
direction: CallDirection;
callDetails: CallDetails;
callEvent?: CallEvent;
callEvent?: CallEvent | null;

constructor(
direction: CallDirection,
callDetails: CallDetails,
callEvent?: CallEvent
callEvent?: CallEvent | null
) {
this.direction = direction;
this.callDetails = callDetails;
Expand Down
Loading

0 comments on commit d229253

Please sign in to comment.