Skip to content

Commit 05176a6

Browse files
authored
Release 26.2.0 (#716)
* Fix event mapping * Release 26.2.0
1 parent a0f9fc7 commit 05176a6

File tree

9 files changed

+36
-14
lines changed

9 files changed

+36
-14
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# React Native Module 26.0.0 Changelog
22

3+
## Version 26.2.0 - February 2, 2026
4+
5+
Minor release that updates the native SDKs, improves logging, and resolves UI event name conflicts.
6+
7+
### Changes
8+
- Updated Android SDK to [20.2.0](https://github.com/urbanairship/android-library/releases/tag/20.2.0)
9+
- Updated iOS SDK to [20.3.0](https://github.com/urbanairship/ios-library/releases/tag/20.3.0)
10+
- Pinned Swift version to 6.0 for the Airship React Native module
11+
- Resolved MessageView UI event name conflicts
12+
- Improved logging
13+
314
## Version 26.1.0 - January 20, 2026
415

516
Minor release that includes accessibility improvements for Message Center and fixes a potential crash on Android.

android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Airship_minSdkVersion=23
33
Airship_targetSdkVersion=36
44
Airship_compileSdkVersion=36
55
Airship_ndkversion=26.1.10909125
6-
Airship_airshipProxyVersion=15.2.0
6+
Airship_airshipProxyVersion=15.4.0

android/src/main/java/com/urbanairship/reactnative/ReactMessageView.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ class ReactMessageView(context: Context) : FrameLayout(context), LifecycleEventL
181181
}
182182

183183
companion object {
184-
const val EVENT_LOAD_STARTED = "airship_message_view_topLoadStarted"
185-
const val EVENT_LOAD_FINISHED = "airship_message_view_topLoadFinished"
186-
const val EVENT_LOAD_ERROR = "airship_message_view_topLoadError"
187-
const val EVENT_CLOSE = "airship_message_view_topClose"
184+
const val EVENT_LOAD_STARTED = "topAirshipMessageViewLoadStarted"
185+
const val EVENT_LOAD_FINISHED = "topAirshipMessageViewLoadFinished"
186+
const val EVENT_LOAD_ERROR = "topAirshipMessageViewLoadError"
187+
const val EVENT_CLOSE = "topAirshipMessageViewClose"
188188

189189
const val EVENT_LOAD_STARTED_HANDLER_NAME = "onLoadStarted"
190190
const val EVENT_LOAD_FINISHED_HANDLER_NAME = "onLoadFinished"

ios/AirshipPluginLoader.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/* Copyright Airship and Contributors */
22

33
import AirshipFrameworkProxy
4+
import AirshipKit
45

56
@objc(AirshipPluginLoader)
67
@MainActor
@@ -10,7 +11,10 @@ public class AirshipPluginLoader: NSObject, AirshipPluginLoaderProtocol {
1011

1112
public static func onLoad() {
1213
if (!disabled) {
14+
AirshipLogger.trace("AirshipPluginLoader onLoad.")
1315
AirshipReactNative.shared.onLoad()
16+
} else {
17+
AirshipLogger.trace("AirshipPluginLoader onLoad skipped (disabled).")
1418
}
1519
}
1620
}

ios/AirshipReactNative.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public final class AirshipReactNative: NSObject, Sendable {
3636
AirshipProxy.shared
3737
}
3838

39-
public static let version: String = "26.1.0"
39+
public static let version: String = "26.2.0"
4040

4141
private let eventNotifier = EventNotifier()
4242

@@ -45,18 +45,22 @@ public final class AirshipReactNative: NSObject, Sendable {
4545

4646
@objc
4747
public func setNotifier(_ notifier: ((String, [String: Any]) -> Void)?) {
48+
AirshipLogger.trace("AirshipReactNative setNotifier called. Enabled: \(notifier != nil)")
4849
let wrappedNotifier = AirshipUnsafeSendableWrapper(notifier)
4950
self.serialQueue.enqueue { @MainActor in
5051
if wrappedNotifier.value != nil {
52+
AirshipLogger.trace("AirshipReactNative notifier registered.")
5153
await self.eventNotifier.setNotifier {
5254
wrappedNotifier.value?(AirshipReactNative.pendingEventsEventName, [:])
5355
}
5456

5557
if AirshipProxyEventEmitter.shared.hasAnyEvents() {
58+
AirshipLogger.trace("AirshipReactNative has pending events; notifying.")
5659
await self.eventNotifier.notifyPendingEvents()
5760
}
5861

5962
AirshipProxy.shared.push.presentationOptionOverrides = { request in
63+
AirshipLogger.trace("AirshipReactNative presentation override request received.")
6064
guard self.overridePresentationOptionsEnabled else {
6165
request.result(options: nil)
6266
return
@@ -89,6 +93,7 @@ public final class AirshipReactNative: NSObject, Sendable {
8993
)
9094
}
9195
} else {
96+
AirshipLogger.trace("AirshipReactNative notifier cleared.")
9297
await self.eventNotifier.setNotifier(nil)
9398
AirshipProxy.shared.push.presentationOptionOverrides = nil
9499
self.clearPendingPresentationRequests()
@@ -117,6 +122,7 @@ public final class AirshipReactNative: NSObject, Sendable {
117122

118123
@MainActor
119124
func onLoad() {
125+
AirshipLogger.trace("AirshipReactNative onLoad.")
120126
AirshipProxy.shared.delegate = self
121127
try? AirshipProxy.shared.attemptTakeOff()
122128

@@ -130,6 +136,7 @@ public final class AirshipReactNative: NSObject, Sendable {
130136

131137
@objc
132138
public func onListenerAdded(eventName: String) {
139+
AirshipLogger.trace("AirshipReactNative listener added: \(eventName)")
133140
guard let type = try? AirshipProxyEventType.fromReactName(eventName) else {
134141
return
135142
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ua/react-native-airship",
3-
"version": "26.1.0",
3+
"version": "26.2.0",
44
"description": "Airship plugin for React Native apps.",
55
"source": "./src/index.tsx",
66
"main": "./lib/module/index.js",

react-native-airship.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ Pod::Spec.new do |s|
2020

2121
install_modules_dependencies(s)
2222

23-
s.dependency "AirshipFrameworkProxy", "15.2.0"
23+
s.dependency "AirshipFrameworkProxy", "15.4.0"
2424
end

src/RNAirshipMessageViewNativeComponent.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ interface NativeProps extends ViewProps {
2727
messageId: string;
2828
onLoadStarted: BubblingEventHandler<
2929
MessageLoadStartedEvent,
30-
'airship_message_view_topLoadStarted'
30+
'topAirshipMessageViewLoadStarted'
3131
>;
3232
onLoadFinished: BubblingEventHandler<
3333
MessageLoadFinishedEvent,
34-
'airship_message_view_topLoadFinished'
34+
'topAirshipMessageViewLoadFinished'
3535
>;
36-
onLoadError: BubblingEventHandler<MessageLoadErrorEvent, 'airship_message_view_topLoadError'>;
37-
onClose: BubblingEventHandler<MessageClosedEvent, 'airship_message_view_topClose'>;
36+
onLoadError: BubblingEventHandler<MessageLoadErrorEvent, 'topAirshipMessageViewLoadError'>;
37+
onClose: BubblingEventHandler<MessageClosedEvent, 'topAirshipMessageViewClose'>;
3838
}
3939

4040
export default codegenNativeComponent<NativeProps>('RNAirshipMessageView') as HostComponent<NativeProps>;

0 commit comments

Comments
 (0)