Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
fix: updates to states
Browse files Browse the repository at this point in the history
  • Loading branch information
gtokman committed Mar 20, 2024
1 parent 92c2769 commit 4994b2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function App() {
console.log('opened');
break;
case 'foreground':
break;
case 'background':
console.log('foreground/background', data);
const { uuid } = data;
Expand Down
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export type NotificationReceivedData = {
| {
kind: 'opened';
}
| { kind: 'foreground' | 'background'; uuid: string }
| { kind: 'background'; uuid: string }
| { kind: 'foreground' }
);

type DeviceTokenReceivedData = string;
Expand Down

0 comments on commit 4994b2a

Please sign in to comment.