Skip to content

Commit ed80a99

Browse files
committed
Create RNCallKeep instance for internal use and exporting.
1 parent 4c6b98e commit ed80a99

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class EventListener {
2626
}
2727

2828
remove = () => {
29-
RNCallKeep.removeEventListener(this._type, this._listener);
29+
callKeep.removeEventListener(this._type, this._listener);
3030
};
3131
}
3232

@@ -375,4 +375,6 @@ class RNCallKeep {
375375
}
376376
}
377377

378-
export default new RNCallKeep();
378+
const callKeep = new RNCallKeep();
379+
380+
export default callKeep;

0 commit comments

Comments
 (0)