-
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
Conversation
#import <FCMSampleApp-Swift.h> | ||
#import <React/RCTLinkingManager.h> | ||
#import <React/RCTBundleURLProvider.h> | ||
#import <FirebaseCore.h> |
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 imports were moved here from AppDelegate.h
file.
These imports are not mentioned in our SDK docs code samples for a valid AppDelegate.h
file. I think it's best for our sample apps to align with our docs so I moved imports to this file.
#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> |
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.
This is the major change in this PR. Updating syntax to align with our docs changes.
</SafeAreaView> | ||
</UserStateContext.Provider> | ||
</CustomerIoSdkContext.Provider> | ||
<GestureHandlerRootView style={{ flex: 1 }}> |
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!
pod update
in sample apps.