From 9aae83d59672c8f2e24b2314cf66e6eb806fdfec Mon Sep 17 00:00:00 2001 From: rh389 Date: Tue, 24 Oct 2017 14:08:47 +0100 Subject: [PATCH] Add requiresMainQueueSetup YES --- react-native/ios/RealmReact/RealmReact.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/react-native/ios/RealmReact/RealmReact.mm b/react-native/ios/RealmReact/RealmReact.mm index 26da98e2..b39ebdd3 100644 --- a/react-native/ios/RealmReact/RealmReact.mm +++ b/react-native/ios/RealmReact/RealmReact.mm @@ -95,6 +95,10 @@ extern "C" JSGlobalContextRef RealmReactGetJSGlobalContextForExecutor(id executo RCT_EXPORT_MODULE(Realm) ++ (BOOL)requiresMainQueueSetup { + return YES; +} + + (void)initialize { if (self != [RealmReact class]) { return;