Skip to content

Commit

Permalink
Fix typo in example (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
oh3vci authored Mar 22, 2022
1 parent e5dad8a commit 9ec4916
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/NotificationsExampleApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function NotificationsExampleApp() {
useEffect(() => {
registerNotificationEvents();
setCategories();
getInitialNotifaction();
getInitialNotification();
}, [])

const registerNotificationEvents = () => {
Expand Down Expand Up @@ -121,7 +121,7 @@ export default function NotificationsExampleApp() {
})
}

const getInitialNotifaction = async () => {
const getInitialNotification = async () => {
const initialNotification = await Notifications.getInitialNotification();
if (initialNotification) {
setNotifications([initialNotification, ...notifications]);
Expand Down Expand Up @@ -174,7 +174,7 @@ export default function NotificationsExampleApp() {
}
<Button title={'Send local notification'} onPress={sendLocalNotification} testID={'sendLocalNotification'} />
<Button title={'Remove all delivered notifications'} onPress={removeAllDeliveredNotifications} />
<Button title={'Check registeration'} onPress={isRegistered} />
<Button title={'Check registration'} onPress={isRegistered} />
{notifications.map((notification, idx) => (
<View key={`notification_${idx}`}>
{renderNotification(notification)}
Expand Down

0 comments on commit 9ec4916

Please sign in to comment.