Skip to content

MOBILE-181: migrate example notification center to new architecture#175

Merged
sergeysozinov merged 1 commit into
new-archfrom
feature/MOBILE-175
May 15, 2026
Merged

MOBILE-181: migrate example notification center to new architecture#175
sergeysozinov merged 1 commit into
new-archfrom
feature/MOBILE-175

Conversation

@sergeysozinov
Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the example app’s notification-center native bridge from legacy React Native modules/events to new-architecture TurboModule/codegen APIs across TypeScript, iOS, and Android.

Changes:

  • Adds a codegen TurboModule spec for notification storage and update events.
  • Replaces legacy iOS and Android notification modules with new-architecture implementations.
  • Centralizes Android notification persistence and updates iOS shared App Group storage usage.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
example/exampleApp/src/screens/NotificationCenterScreen.tsx Uses the new TurboModule API and typed event emitter.
example/exampleApp/src/native/NativeNotificationModule.ts Defines the codegen TurboModule spec.
example/exampleApp/package.json Adds React Native codegen configuration.
example/exampleApp/ios/NotificationModule.swift Removes the legacy Swift event emitter module.
example/exampleApp/ios/NotificationModule.mm Adds the iOS TurboModule implementation.
example/exampleApp/ios/NotificationModule.m Removes the old Objective-C extern bridge.
example/exampleApp/ios/NotificationCenterStorage.swift Adds shared notification storage helpers.
example/exampleApp/ios/MindboxNotificationServiceExtension/NotificationService.swift Aligns the App Group suite name.
example/exampleApp/ios/exampleApp.xcodeproj/project.pbxproj Updates iOS project references for the new files.
example/exampleApp/ios/AppDelegate.swift Routes update notifications through NotificationCenter.
example/exampleApp/android/app/src/main/java/com/exampleapp/NotificationStorage.kt Adds centralized Android SharedPreferences storage.
example/exampleApp/android/app/src/main/java/com/exampleapp/NotificationPackage.kt Registers the module as a TurboReactPackage.
example/exampleApp/android/app/src/main/java/com/exampleapp/NotificationModule.kt Implements the Android codegen TurboModule.
example/exampleApp/android/app/src/main/java/com/exampleapp/MainApplication.kt Uses the new storage/event path when saving notifications.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sergeysozinov sergeysozinov requested a review from justSmK May 14, 2026 12:36
@sergeysozinov sergeysozinov merged commit 67198a7 into new-arch May 15, 2026
8 checks passed
@sergeysozinov sergeysozinov deleted the feature/MOBILE-175 branch May 15, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants