UNPKG

react-native-integrate

Version:

Automate integration of additional code into React Native projects

27 lines (19 loc) 699 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.notificationViewControllerM = void 0; exports.notificationViewControllerM = `#import "NotificationViewController.h" #import <UserNotifications/UserNotifications.h> #import <UserNotificationsUI/UserNotificationsUI.h> @interface NotificationViewController () <UNNotificationContentExtension> @property IBOutlet UILabel *label; @end @implementation NotificationViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any required interface initialization here. } - (void)didReceiveNotification:(UNNotification *)notification { self.label.text = notification.request.content.body; } @end `;