-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: update sample apps with newer RN syntax #212
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
#import <React/RCTBridgeDelegate.h> | ||
#import <RCTAppDelegate.h> | ||
#import <UIKit/UIKit.h> | ||
#import <UserNotifications/UNUserNotificationCenter.h> | ||
#import <UserNotifications/UserNotifications.h> | ||
|
||
@interface AppDelegate : UIResponder <UIApplicationDelegate, RCTBridgeDelegate, UNUserNotificationCenterDelegate> | ||
|
||
@property (nonatomic, strong) UIWindow *window; | ||
@interface AppDelegate: RCTAppDelegate<UNUserNotificationCenterDelegate> | ||
|
||
Comment on lines
2
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the major change in this PR. Updating syntax to align with our docs changes. |
||
@end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
#import "AppDelegate.h" | ||
#import <FCMSampleApp-Swift.h> | ||
#import <React/RCTLinkingManager.h> | ||
#import <React/RCTBundleURLProvider.h> | ||
#import <FirebaseCore.h> | ||
Comment on lines
+2
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These imports were moved here from These imports are not mentioned in our SDK docs code samples for a valid |
||
|
||
@implementation AppDelegate | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes were indeed required ! Thanks for making this PR!