fix crash on tap focus & warning on start (#961)

This commit is contained in:
Kesha Antonov 2017-10-28 09:28:15 +03:00 committed by Tomas Roos
parent 52b11f2d32
commit 59a0b44c71
1 changed files with 6 additions and 1 deletions

View File

@ -42,6 +42,11 @@ RCT_EXPORT_MODULE();
return self.camera; return self.camera;
} }
+ (BOOL)requiresMainQueueSetup
{
return NO;
}
- (NSDictionary *)constantsToExport - (NSDictionary *)constantsToExport
{ {
@ -301,7 +306,7 @@ RCT_CUSTOM_VIEW_PROPERTY(captureAudio, BOOL, RCTCamera) {
} }
} }
- (NSArray *)customDirectEventTypes - (NSArray *)customBubblingEventTypes
{ {
return @[ return @[
@"focusChanged", @"focusChanged",