Skip to content
This repository was archived by the owner on Jul 28, 2022. It is now read-only.

Commit d8916c0

Browse files
committed
Fix showPendingMessage on iOS
1 parent 386b341 commit d8916c0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ios/RNBatch.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,9 @@ - (NSDictionary*) dictionaryWithNotification:(BatchInboxNotificationContent*)not
574574
}
575575

576576
RCT_EXPORT_METHOD(messaging_showPendingMessage) {
577-
[BatchMessaging showPendingMessage];
577+
dispatch_async(dispatch_get_main_queue(), ^{
578+
[BatchMessaging showPendingMessage];
579+
});
578580
}
579581

580582
RCT_EXPORT_METHOD(messaging_setFontOverride:(nullable NSString*) normalFontName boldFontName:(nullable NSString*) boldFontName italicFontName:(nullable NSString*) italicFontName italicBoldFontName:(nullable NSString*) italicBoldFontName)

0 commit comments

Comments
 (0)