Skip to content

Commit 9ec4916

Browse files
authored
Fix typo in example (#843)
1 parent e5dad8a commit 9ec4916

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

example/NotificationsExampleApp.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function NotificationsExampleApp() {
2121
useEffect(() => {
2222
registerNotificationEvents();
2323
setCategories();
24-
getInitialNotifaction();
24+
getInitialNotification();
2525
}, [])
2626

2727
const registerNotificationEvents = () => {
@@ -121,7 +121,7 @@ export default function NotificationsExampleApp() {
121121
})
122122
}
123123

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

0 commit comments

Comments
 (0)