Skip to content

Commit 00895aa

Browse files
authored
Add requiresMainQueueSetup method
Since RN 0.49, `requiresMainQueueSetup` needs to be defined if the module overrides `constantsToExport`.
1 parent d729f20 commit 00895aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,11 @@ - (NSDictionary *)constantsToExport
439439
};
440440
};
441441

442+
+ (BOOL)requiresMainQueueSetup
443+
{
444+
return YES;
445+
}
446+
442447
+ (BOOL)iOSVersionIsLessThan:(NSString *)iOSVersion {
443448
return [iOSVersion compare:[UIDevice currentDevice].systemVersion options:NSNumericSearch] == NSOrderedDescending;
444449
};

0 commit comments

Comments
 (0)