Skip to content

Commit

Permalink
docs: add instruction for RN 71 (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
Naturalclar authored Feb 19, 2023
1 parent f1d807d commit e914817
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,20 @@ At the top of the file:

Then, add the 'UNUserNotificationCenterDelegate' to protocols:


For RN v0.71 and above

```objective-c
@interface AppDelegate : RCTAppDelegate <UNUserNotificationCenterDelegate>
```
For RN v0.70 and below
```objective-c
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificationCenterDelegate>
```

### Update `AppDelegate.m`
### Update `AppDelegate.m` or `AppDelegate.mm`

At the top of the file:

Expand Down

0 comments on commit e914817

Please sign in to comment.