From 7120a5e2c6bd44ebdfee24faa2850ab16e451e61 Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Fri, 22 Oct 2021 23:00:21 +0100 Subject: [PATCH] implement requiresMainQueueSetup method on react-native, fixes #199 --- react-native/ios/FFmpegKitReactNativeModule.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/react-native/ios/FFmpegKitReactNativeModule.m b/react-native/ios/FFmpegKitReactNativeModule.m index 7861877..d64a1ac 100644 --- a/react-native/ios/FFmpegKitReactNativeModule.m +++ b/react-native/ios/FFmpegKitReactNativeModule.m @@ -86,6 +86,8 @@ RCT_EXPORT_MODULE(FFmpegKitReactNativeModule); return self; } + + - (NSArray*)supportedEvents { NSMutableArray *array = [NSMutableArray array]; @@ -628,6 +630,10 @@ RCT_EXPORT_METHOD(getExternalLibraries:(RCTPromiseResolveBlock)resolve rejecter: statisticsEnabled = false; } ++ (BOOL)requiresMainQueueSetup { + return NO; +} + + (NSDictionary*)toSessionDictionary:(id) session { if (session != nil) { NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init];