From b3d6be156e258f9973f1fc2436add6e9397616a1 Mon Sep 17 00:00:00 2001 From: Lochlan Wansbrough Date: Sun, 19 Jul 2015 16:24:55 -0700 Subject: [PATCH] Lingering fix from #68 --- RCTCamera.m | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RCTCamera.m b/RCTCamera.m index 54439e8..1fb9857 100644 --- a/RCTCamera.m +++ b/RCTCamera.m @@ -92,9 +92,9 @@ - (void)removeFromSuperview { + [self.manager stopSession]; [super removeFromSuperview]; [[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil]; - [self.manager stopSession]; } - (void)orientationChanged:(NSNotification *)notification{ diff --git a/package.json b/package.json index fee9269..bf6c117 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "type" : "git", "url" : "https://github.com/lwansbrough/react-native-camera.git" }, - "version": "0.3.1", + "version": "0.3.2", "description": "A Camera component for React Native. Also reads barcodes.", "main": "Camera.ios.js", "author": "Lochlan Wansbrough (http://lwansbrough.com)",