diff --git a/examples/RNOneSignalTS/src/OSButtons.tsx b/examples/RNOneSignalTS/src/OSButtons.tsx index 14926a65..112c257c 100644 --- a/examples/RNOneSignalTS/src/OSButtons.tsx +++ b/examples/RNOneSignalTS/src/OSButtons.tsx @@ -277,8 +277,8 @@ class OSButtons extends React.Component { }); const getTagsButton = renderButtonView('Get tags', async () => { - const tags = await OneSignal.User.getTags(); - loggingFunction('Tags:', tags); + const tags = await OneSignal.User.getTags(); + loggingFunction('Tags:', tags); }); const setLanguageButton = renderButtonView('Set Language', () => { @@ -357,7 +357,7 @@ class OSButtons extends React.Component { loggingFunction('External Id:', externalId); }, ); - + return [ loginButton, logoutButton, @@ -376,7 +376,7 @@ class OSButtons extends React.Component { addAliasesButton, removeAliasesButton, getOnesignalIdButton, - getExternalIdButton + getExternalIdButton, ]; } diff --git a/examples/RNOneSignalTS/src/OSDemo.tsx b/examples/RNOneSignalTS/src/OSDemo.tsx index 1cf82f0c..94f2dbf1 100644 --- a/examples/RNOneSignalTS/src/OSDemo.tsx +++ b/examples/RNOneSignalTS/src/OSDemo.tsx @@ -102,7 +102,7 @@ class OSDemo extends React.Component { OneSignal.User.addEventListener('change', (event) => { this.OSLog('OneSignal: user changed: ', event); - }) + }); } OSLog = (message: string, optionalArg: any = null) => { diff --git a/src/index.ts b/src/index.ts index 1bbc76f5..8ffc61ba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -24,10 +24,7 @@ import { OSNotificationPermission, PushSubscriptionChangedState, } from './models/Subscription'; -import { - UserState, - UserChangedState, -} from './models/User'; +import { UserState, UserChangedState } from './models/User'; import NotificationWillDisplayEvent from './events/NotificationWillDisplayEvent'; import { InAppMessage, diff --git a/src/models/User.ts b/src/models/User.ts index 3805d6f8..0bc33203 100644 --- a/src/models/User.ts +++ b/src/models/User.ts @@ -1,9 +1,9 @@ export interface UserState { - externalId: string; - onesignalId: string; + externalId: string; + onesignalId: string; } - + export interface UserChangedState { - previous: UserState; - current: UserState; -} \ No newline at end of file + previous: UserState; + current: UserState; +}