Skip to content

Commit

Permalink
Fix method name error
Browse files Browse the repository at this point in the history
  • Loading branch information
droplessjake committed Aug 11, 2022
1 parent ea06144 commit 81cb37c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ios/RNZendeskMessaging.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ @implementation RNZendeskMessaging
}

RCT_EXPORT_METHOD(showMessaging) {
UIViewController *zendeskController = [Zendesk.instance.messaging messagingViewController];
if (zendeskController != NULL) {
dispatch_sync(dispatch_get_main_queue(), ^{
dispatch_async(dispatch_get_main_queue(), ^{
UIViewController *zendeskController = [Zendesk.instance.messaging messagingViewController];
if (zendeskController != NULL) {
UIViewController *reactController = RCTPresentedViewController();
[reactController presentViewController:zendeskController animated:YES completion:nil];
});
}
}
});
}

@end
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dropless/react-native-zendesk-messaging",
"version": "0.0.15",
"version": "0.0.16",
"description": "React Native wrapper for the Zendesk Messaging SDK",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 81cb37c

Please sign in to comment.