Skip to content

Commit

Permalink
Updated demo app tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kober32 committed Aug 20, 2024
1 parent c1923eb commit 7ef9e71
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,6 @@ export default function App() {
<Button title='Register for push' onPress={async () => {
try {

let token;

const { status: existingStatus } = await Notifications.getPermissionsAsync();
let finalStatus = existingStatus;

Expand All @@ -154,7 +152,7 @@ export default function App() {
alert('Failed to get push token for push notification!');
return;
}
token = (await Notifications.getDevicePushTokenAsync()).data;
let token = (await Notifications.getDevicePushTokenAsync()).data;
console.log(`token: ${token}`);

let apiResult = await mtoken.registerForPush(token);
Expand Down

0 comments on commit 7ef9e71

Please sign in to comment.