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

Commit

Permalink
fix: errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gtokman committed Apr 17, 2024
1 parent 500f1b5 commit 4418df8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 39 deletions.
36 changes: 0 additions & 36 deletions example/src/App.js

This file was deleted.

15 changes: 13 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
import * as React from 'react';

import { StyleSheet, View, Text, Button } from 'react-native';
// import type { PushNotificationPermissionStatus } from '@candlefinance/push';
import type { PushNotificationPermissionStatus } from '@candlefinance/push';
import { module as Push } from '@candlefinance/push';

export default function App() {
return (
<View style={styles.container}>
<Text style={styles.text}>Authorization Status:</Text>
<Text style={styles.text}>Authorization Status</Text>
<Button
title="Request Permissions"
onPress={() => {
Push.getPermissionStatus().then(
(status: PushNotificationPermissionStatus) => {
console.log(status);
}
);
}}
/>
</View>
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Platform } from 'react-native';

// General
export const PACKAGE_NAME = '@aws-amplify/rtn-push-notification';
export const PACKAGE_NAME = 'Push';
export const LINKING_ERROR =
`The ${PACKAGE_NAME} package doesn't seem to be linked. Make sure: \n\n` +
Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) +
Expand Down

0 comments on commit 4418df8

Please sign in to comment.