implement requiresMainQueueSetup method on react-native, fixes #199

This commit is contained in:
Taner Sener 2021-10-22 23:00:21 +01:00
parent b99e712931
commit 7120a5e2c6

View File

@ -86,6 +86,8 @@ RCT_EXPORT_MODULE(FFmpegKitReactNativeModule);
return self;
}
- (NSArray<NSString*>*)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>) session {
if (session != nil) {
NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init];