Skip to content

Commit

Permalink
docs: fix optIn and optOut description
Browse files Browse the repository at this point in the history
  • Loading branch information
nan-li committed Oct 30, 2023
1 parent c281499 commit 0421f61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,14 @@ export namespace OneSignal {
return pushSub.optedIn;
}

/** Enable the push notification subscription to OneSignal. */
/** Disable the push notification subscription to OneSignal. */
export function optOut() {
if (!isNativeModuleLoaded(RNOneSignal)) return;

RNOneSignal.optOut();
}

/** Disable the push notification subscription to OneSignal. */
/** Enable the push notification subscription to OneSignal. */
export function optIn() {
if (!isNativeModuleLoaded(RNOneSignal)) return;

Expand Down

0 comments on commit 0421f61

Please sign in to comment.