MOBILE-181: migrate example notification center to new architecture#175
Merged
Conversation
There was a problem hiding this comment.
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.
justSmK
approved these changes
May 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://tracker.yandex.ru/MOBILE-181