Skip to content

Commit adee87b

Browse files
committed
document removeEventListener
1 parent 0028869 commit adee87b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,14 @@ So we have to check if the application is reachable before making a call from th
516516
RNCallKeep.addEventListener('checkReachability', () => {
517517
RNCallKeep.setReachable();
518518
});
519+
520+
```
521+
### removeEventListener
522+
523+
Allows to remove the listener on an event.
524+
525+
```js
526+
RNCallKeep.removeEventListener('checkReachability');
519527
```
520528

521529
## Example

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class RNCallKeep {
4343

4444
}
4545

46-
static removeEventListener(type: Events, handler: (args: any) => void) {
46+
static removeEventListener(type: Events) {
4747

4848
}
4949

0 commit comments

Comments
 (0)