Skip to content

Commit 72b29af

Browse files
authored
Merge pull request #74 from lucianomlima/master
docs: update documentation links to reactnative.dev
2 parents 9fbb9be + 59d08d2 commit 72b29af

File tree

3 files changed

+30
-30
lines changed

3 files changed

+30
-30
lines changed

docs/manual-linking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ node_modules/@react-native-community/push-notification-ios/ios/PushNotificationI
1010
libRNCPushNotificationIOS.a
1111
```
1212

13-
More info on manual linking, [here](https://facebook.github.io/react-native/docs/linking-libraries-ios).
13+
More info on manual linking, [here](https://reactnative.dev/docs/linking-libraries-ios).

index.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export type PushNotificationEventName =
153153

154154
/**
155155
* Handle push notifications for your app, including permission handling and icon badge number.
156-
* @see https://facebook.github.io/react-native/docs/pushnotificationios.html#content
156+
* @see https://reactnative.dev/docs/pushnotificationios.html#content
157157
*
158158
* //FIXME: BGR: The documentation seems completely off compared to the actual js implementation. I could never get the example to run
159159
*/
@@ -196,14 +196,14 @@ export interface PushNotificationIOSStatic {
196196
/**
197197
* Remove all delivered notifications from Notification Center.
198198
*
199-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#removealldeliverednotifications
199+
* See https://reactnative.dev/docs/pushnotificationios.html#removealldeliverednotifications
200200
*/
201201
removeAllDeliveredNotifications(): void;
202202

203203
/**
204204
* Provides you with a list of the app’s notifications that are still displayed in Notification Center.
205205
*
206-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getdeliverednotifications
206+
* See https://reactnative.dev/docs/pushnotificationios.html#getdeliverednotifications
207207
*/
208208
getDeliveredNotifications(
209209
callback: (notifications: Record<string, any>[]) => void,
@@ -212,7 +212,7 @@ export interface PushNotificationIOSStatic {
212212
/**
213213
* Removes the specified notifications from Notification Center
214214
*
215-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#removedeliverednotifications
215+
* See https://reactnative.dev/docs/pushnotificationios.html#removedeliverednotifications
216216
*/
217217
removeDeliveredNotifications(identifiers: string[]): void;
218218

js/index.js

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export type PushNotificationEventName = $Keys<{
6464
* Handle push notifications for your app, including permission handling and
6565
* icon badge number.
6666
*
67-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html
67+
* See https://reactnative.dev/docs/pushnotificationios.html
6868
*/
6969
class PushNotificationIOS {
7070
_data: Object;
@@ -87,7 +87,7 @@ class PushNotificationIOS {
8787
/**
8888
* Schedules the localNotification for immediate presentation.
8989
*
90-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#presentlocalnotification
90+
* See https://reactnative.dev/docs/pushnotificationios.html#presentlocalnotification
9191
*/
9292
static presentLocalNotification(details: Object) {
9393
RNCPushNotificationIOS.presentLocalNotification(details);
@@ -96,7 +96,7 @@ class PushNotificationIOS {
9696
/**
9797
* Schedules the localNotification for future presentation.
9898
*
99-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#schedulelocalnotification
99+
* See https://reactnative.dev/docs/pushnotificationios.html#schedulelocalnotification
100100
*/
101101
static scheduleLocalNotification(details: Object) {
102102
RNCPushNotificationIOS.scheduleLocalNotification(details);
@@ -105,7 +105,7 @@ class PushNotificationIOS {
105105
/**
106106
* Cancels all scheduled localNotifications.
107107
*
108-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#cancelalllocalnotifications
108+
* See https://reactnative.dev/docs/pushnotificationios.html#cancelalllocalnotifications
109109
*/
110110
static cancelAllLocalNotifications() {
111111
RNCPushNotificationIOS.cancelAllLocalNotifications();
@@ -114,7 +114,7 @@ class PushNotificationIOS {
114114
/**
115115
* Remove all delivered notifications from Notification Center.
116116
*
117-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#removealldeliverednotifications
117+
* See https://reactnative.dev/docs/pushnotificationios.html#removealldeliverednotifications
118118
*/
119119
static removeAllDeliveredNotifications(): void {
120120
RNCPushNotificationIOS.removeAllDeliveredNotifications();
@@ -123,7 +123,7 @@ class PushNotificationIOS {
123123
/**
124124
* Provides you with a list of the app’s notifications that are still displayed in Notification Center.
125125
*
126-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getdeliverednotifications
126+
* See https://reactnative.dev/docs/pushnotificationios.html#getdeliverednotifications
127127
*/
128128
static getDeliveredNotifications(
129129
callback: (notifications: Array<Object>) => void,
@@ -134,7 +134,7 @@ class PushNotificationIOS {
134134
/**
135135
* Removes the specified notifications from Notification Center
136136
*
137-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#removedeliverednotifications
137+
* See https://reactnative.dev/docs/pushnotificationios.html#removedeliverednotifications
138138
*/
139139
static removeDeliveredNotifications(identifiers: Array<string>): void {
140140
RNCPushNotificationIOS.removeDeliveredNotifications(identifiers);
@@ -143,7 +143,7 @@ class PushNotificationIOS {
143143
/**
144144
* Sets the badge number for the app icon on the home screen.
145145
*
146-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#setapplicationiconbadgenumber
146+
* See https://reactnative.dev/docs/pushnotificationios.html#setapplicationiconbadgenumber
147147
*/
148148
static setApplicationIconBadgeNumber(number: number) {
149149
RNCPushNotificationIOS.setApplicationIconBadgeNumber(number);
@@ -152,7 +152,7 @@ class PushNotificationIOS {
152152
/**
153153
* Gets the current badge number for the app icon on the home screen.
154154
*
155-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getapplicationiconbadgenumber
155+
* See https://reactnative.dev/docs/pushnotificationios.html#getapplicationiconbadgenumber
156156
*/
157157
static getApplicationIconBadgeNumber(callback: Function) {
158158
RNCPushNotificationIOS.getApplicationIconBadgeNumber(callback);
@@ -161,7 +161,7 @@ class PushNotificationIOS {
161161
/**
162162
* Cancel local notifications.
163163
*
164-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#cancellocalnotification
164+
* See https://reactnative.dev/docs/pushnotificationios.html#cancellocalnotification
165165
*/
166166
static cancelLocalNotifications(userInfo: Object) {
167167
RNCPushNotificationIOS.cancelLocalNotifications(userInfo);
@@ -170,7 +170,7 @@ class PushNotificationIOS {
170170
/**
171171
* Gets the local notifications that are currently scheduled.
172172
*
173-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getscheduledlocalnotifications
173+
* See https://reactnative.dev/docs/pushnotificationios.html#getscheduledlocalnotifications
174174
*/
175175
static getScheduledLocalNotifications(callback: Function) {
176176
RNCPushNotificationIOS.getScheduledLocalNotifications(callback);
@@ -180,7 +180,7 @@ class PushNotificationIOS {
180180
* Attaches a listener to remote or local notification events while the app
181181
* is running in the foreground or the background.
182182
*
183-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#addeventlistener
183+
* See https://reactnative.dev/docs/pushnotificationios.html#addeventlistener
184184
*/
185185
static addEventListener(type: PushNotificationEventName, handler: Function) {
186186
invariant(
@@ -227,7 +227,7 @@ class PushNotificationIOS {
227227
* Removes the event listener. Do this in `componentWillUnmount` to prevent
228228
* memory leaks.
229229
*
230-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#removeeventlistener
230+
* See https://reactnative.dev/docs/pushnotificationios.html#removeeventlistener
231231
*/
232232
static removeEventListener(
233233
type: PushNotificationEventName,
@@ -254,7 +254,7 @@ class PushNotificationIOS {
254254
* a subset of these can be requested by passing a map of requested
255255
* permissions.
256256
*
257-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#requestpermissions
257+
* See https://reactnative.dev/docs/pushnotificationios.html#requestpermissions
258258
*/
259259
static requestPermissions(permissions?: {
260260
alert?: boolean,
@@ -285,7 +285,7 @@ class PushNotificationIOS {
285285
/**
286286
* Unregister for all remote notifications received via Apple Push Notification service.
287287
*
288-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#abandonpermissions
288+
* See https://reactnative.dev/docs/pushnotificationios.html#abandonpermissions
289289
*/
290290
static abandonPermissions() {
291291
RNCPushNotificationIOS.abandonPermissions();
@@ -295,7 +295,7 @@ class PushNotificationIOS {
295295
* See what push permissions are currently enabled. `callback` will be
296296
* invoked with a `permissions` object.
297297
*
298-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#checkpermissions
298+
* See https://reactnative.dev/docs/pushnotificationios.html#checkpermissions
299299
*/
300300
static checkPermissions(callback: Function) {
301301
invariant(typeof callback === 'function', 'Must provide a valid callback');
@@ -306,7 +306,7 @@ class PushNotificationIOS {
306306
* This method returns a promise that resolves to either the notification
307307
* object if the app was launched by a push notification, or `null` otherwise.
308308
*
309-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getinitialnotification
309+
* See https://reactnative.dev/docs/pushnotificationios.html#getinitialnotification
310310
*/
311311
static getInitialNotification(): Promise<?PushNotificationIOS> {
312312
return RNCPushNotificationIOS.getInitialNotification().then(
@@ -360,7 +360,7 @@ class PushNotificationIOS {
360360
* This method is available for remote notifications that have been received via:
361361
* `application:didReceiveRemoteNotification:fetchCompletionHandler:`
362362
*
363-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#finish
363+
* See https://reactnative.dev/docs/pushnotificationios.html#finish
364364
*/
365365
finish(fetchResult: string) {
366366
if (
@@ -389,7 +389,7 @@ class PushNotificationIOS {
389389
/**
390390
* Gets the sound string from the `aps` object
391391
*
392-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getsound
392+
* See https://reactnative.dev/docs/pushnotificationios.html#getsound
393393
*/
394394
getSound(): ?string {
395395
return this._sound;
@@ -398,7 +398,7 @@ class PushNotificationIOS {
398398
/**
399399
* Gets the category string from the `aps` object
400400
*
401-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getcategory
401+
* See https://reactnative.dev/docs/pushnotificationios.html#getcategory
402402
*/
403403
getCategory(): ?string {
404404
return this._category;
@@ -407,7 +407,7 @@ class PushNotificationIOS {
407407
/**
408408
* Gets the notification's main message from the `aps` object
409409
*
410-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getalert
410+
* See https://reactnative.dev/docs/pushnotificationios.html#getalert
411411
*/
412412
getAlert(): ?string | ?Object {
413413
return this._alert;
@@ -416,7 +416,7 @@ class PushNotificationIOS {
416416
/**
417417
* Gets the content-available number from the `aps` object
418418
*
419-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getcontentavailable
419+
* See https://reactnative.dev/docs/pushnotificationios.html#getcontentavailable
420420
*/
421421
getContentAvailable(): ContentAvailable {
422422
return this._contentAvailable;
@@ -425,7 +425,7 @@ class PushNotificationIOS {
425425
/**
426426
* Gets the badge count number from the `aps` object
427427
*
428-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getbadgecount
428+
* See https://reactnative.dev/docs/pushnotificationios.html#getbadgecount
429429
*/
430430
getBadgeCount(): ?number {
431431
return this._badgeCount;
@@ -434,7 +434,7 @@ class PushNotificationIOS {
434434
/**
435435
* Gets the data object on the notif
436436
*
437-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getdata
437+
* See https://reactnative.dev/docs/pushnotificationios.html#getdata
438438
*/
439439
getData(): ?Object {
440440
return this._data;
@@ -443,7 +443,7 @@ class PushNotificationIOS {
443443
/**
444444
* Gets the thread ID on the notif
445445
*
446-
* See https://facebook.github.io/react-native/docs/pushnotificationios.html#getthreadid
446+
* See https://reactnative.dev/docs/pushnotificationios.html#getthreadid
447447
*/
448448
getThreadID(): ?string {
449449
return this._threadID;

0 commit comments

Comments
 (0)