mirror of
https://github.com/status-im/react-native-camera.git
synced 2025-02-24 09:48:17 +00:00
Make face detector work on iOS
This commit is contained in:
parent
310933edec
commit
c4c9561863
@ -16,7 +16,7 @@ RCT_EXPORT_MODULE(RNCameraManager);
|
||||
RCT_EXPORT_VIEW_PROPERTY(onCameraReady, RCTDirectEventBlock);
|
||||
RCT_EXPORT_VIEW_PROPERTY(onMountError, RCTDirectEventBlock);
|
||||
RCT_EXPORT_VIEW_PROPERTY(onBarCodeRead, RCTDirectEventBlock);
|
||||
RCT_EXPORT_VIEW_PROPERTY(onFaceDetected, RCTDirectEventBlock);
|
||||
RCT_EXPORT_VIEW_PROPERTY(onFacesDetected, RCTDirectEventBlock);
|
||||
|
||||
+ (BOOL)requiresMainQueueSetup
|
||||
{
|
||||
@ -63,7 +63,7 @@ RCT_EXPORT_VIEW_PROPERTY(onFaceDetected, RCTDirectEventBlock);
|
||||
|
||||
- (NSArray<NSString *> *)supportedEvents
|
||||
{
|
||||
return @[@"onCameraReady", @"onMountError", @"onBarCodeRead", @"onFaceDetected"];
|
||||
return @[@"onCameraReady", @"onMountError", @"onBarCodeRead", @"onFacesDetected"];
|
||||
}
|
||||
|
||||
+ (NSDictionary *)validBarCodeTypes
|
||||
|
Loading…
x
Reference in New Issue
Block a user