@trycourier/courier-react-native 5.5.1 → 5.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -380,7 +380,7 @@ class CourierSharedModule(
380
380
  }
381
381
 
382
382
  @ReactMethod
383
- fun fetchNextPageOfMessages(promise: Promise, inboxMessageFeed: String) {
383
+ fun fetchNextPageOfMessages(inboxMessageFeed: String, promise: Promise) {
384
384
  CoroutineScope(Dispatchers.Main).launch {
385
385
  try {
386
386
  val messageSet = Courier.shared.fetchNextInboxPage(
@@ -15,7 +15,7 @@ import com.facebook.react.modules.core.DeviceEventManagerModule
15
15
  import com.google.gson.GsonBuilder
16
16
 
17
17
  internal object Utils {
18
- val COURIER_AGENT = CourierAgent.ReactNativeAndroid(version = "5.5.1")
18
+ val COURIER_AGENT = CourierAgent.ReactNativeAndroid(version = "5.5.2")
19
19
  }
20
20
 
21
21
  internal fun ReactContext.sendEvent(eventName: String, value: Any?) {
@@ -26,7 +26,7 @@
26
26
  if (self) {
27
27
 
28
28
  // Set the user agent
29
- Courier.agent = [CourierAgent reactNativeIOS:@"5.5.1"];
29
+ Courier.agent = [CourierAgent reactNativeIOS:@"5.5.2"];
30
30
 
31
31
  // Register for remote notifications
32
32
  UIApplication *app = [UIApplication sharedApplication];
@@ -14,7 +14,7 @@ internal class CourierReactNativeEventEmitter: RCTEventEmitter {
14
14
 
15
15
  // Set the user agent
16
16
  // Used to know the platform performing requests
17
- Courier.agent = CourierAgent.reactNativeIOS("5.5.1")
17
+ Courier.agent = CourierAgent.reactNativeIOS("5.5.2")
18
18
 
19
19
  }
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycourier/courier-react-native",
3
- "version": "5.5.1",
3
+ "version": "5.5.2",
4
4
  "description": "Inbox, Push Notifications, and Preferences for React Native",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",