Lingering fix from #68

This commit is contained in:
Lochlan Wansbrough 2015-07-19 16:24:55 -07:00
parent 3fb44f2778
commit b3d6be156e
2 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@
- (void)removeFromSuperview - (void)removeFromSuperview
{ {
[self.manager stopSession];
[super removeFromSuperview]; [super removeFromSuperview];
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil]; [[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil];
[self.manager stopSession];
} }
- (void)orientationChanged:(NSNotification *)notification{ - (void)orientationChanged:(NSNotification *)notification{

View File

@ -4,7 +4,7 @@
"type" : "git", "type" : "git",
"url" : "https://github.com/lwansbrough/react-native-camera.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.", "description": "A Camera component for React Native. Also reads barcodes.",
"main": "Camera.ios.js", "main": "Camera.ios.js",
"author": "Lochlan Wansbrough <lochie@live.com> (http://lwansbrough.com)", "author": "Lochlan Wansbrough <lochie@live.com> (http://lwansbrough.com)",