Skip to content

Commit b3d6be1

Browse files
committed
Lingering fix from react-native-camera#68
1 parent 3fb44f2 commit b3d6be1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

RCTCamera.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ - (void)removeReactSubview:(UIView *)subview
9292

9393
- (void)removeFromSuperview
9494
{
95+
[self.manager stopSession];
9596
[super removeFromSuperview];
9697
[[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil];
97-
[self.manager stopSession];
9898
}
9999

100100
- (void)orientationChanged:(NSNotification *)notification{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"type" : "git",
55
"url" : "https://github.com/lwansbrough/react-native-camera.git"
66
},
7-
"version": "0.3.1",
7+
"version": "0.3.2",
88
"description": "A Camera component for React Native. Also reads barcodes.",
99
"main": "Camera.ios.js",
1010
"author": "Lochlan Wansbrough <[email protected]> (http://lwansbrough.com)",

0 commit comments

Comments
 (0)