Skip to content

Commit e914817

Browse files
authored
docs: add instruction for RN 71 (#392)
1 parent f1d807d commit e914817

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,20 @@ At the top of the file:
8585

8686
Then, add the 'UNUserNotificationCenterDelegate' to protocols:
8787

88+
89+
For RN v0.71 and above
90+
91+
```objective-c
92+
@interface AppDelegate : RCTAppDelegate <UNUserNotificationCenterDelegate>
93+
```
94+
95+
For RN v0.70 and below
96+
8897
```objective-c
8998
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificationCenterDelegate>
9099
```
91100

92-
### Update `AppDelegate.m`
101+
### Update `AppDelegate.m` or `AppDelegate.mm`
93102

94103
At the top of the file:
95104

0 commit comments

Comments
 (0)