Fix for issue #386 - camera cras- ios 10 simulator
This commit is contained in:
parent
1747ec4b0a
commit
000c09a2cc
|
@ -30,9 +30,10 @@ RCT_EXPORT_MODULE();
|
|||
- (UIView *)view
|
||||
{
|
||||
self.session = [AVCaptureSession new];
|
||||
|
||||
#if !(TARGET_IPHONE_SIMULATOR)
|
||||
self.previewLayer = [AVCaptureVideoPreviewLayer layerWithSession:self.session];
|
||||
self.previewLayer.needsDisplayOnBoundsChange = YES;
|
||||
#endif
|
||||
|
||||
if(!self.camera){
|
||||
self.camera = [[RCTCamera alloc] initWithManager:self bridge:self.bridge];
|
||||
|
|
Loading…
Reference in New Issue