How stringsaeed/react-native-notifications-utils works
Main Components
a. JavaScript/TypeScript Layer
• Entry point (index.ts)
• NotificationsUtilsModule.ts
• Type definitions
b. Native Bridges
• iOS Bridge (Swift/Objective-C)
• Android Bridge (Java)
c. Platform-specific Settings
• iOS Settings App Integration
• Android Settings App Integration
• Android Notification Channel Support
┌─────────────────────────────────────────┐
• React Native Layer │
• ┘
• ↕
┌─────────────────────────────────────────┐
• Native Bridge Interface │
• ┘
• ↕
┌───────────────────┐ ┌───────────────┐
• iOS Platform │ │Android Platform│
• ┘ └───────────────┘
Component Details
a. React Native Layer:
• Main module export
• TypeScript interfaces
• Public API methods (openSettings)
b. Native Bridge Interface:
• NotificationsUtilsModule bridge definition
• Platform-specific method mapping
c. Platform-specific Implementation:
• iOS: UIKit integration (openNotificationSettingsURLString)
• Android: Intent system for settings navigation
• Android: Notification Channel support for API 26+
Flow Indicators
• Version-specific branching logic
Additional Elements
• iOS: Xcode 14+ (iOS 16)
• Android: API level branching (26+)
Public API simplicity
Keep the abstraction level focused on the architectural components while showing the key integration points with the native platform settings. This will help developers understand both the high-level structure and the platform-specific implementation details.
• Rectangles for modules
• Rhombuses for decision points
• Clear labels for all components and versions