From 1102a53c13e1b2f80e4889cb92443d8a7cc1ce70 Mon Sep 17 00:00:00 2001 From: Lochlan Wansbrough Date: Thu, 4 Jun 2015 14:37:36 -0700 Subject: [PATCH] Fixes issue with un-rendering the camera view --- RCTCamera.m | 1 + package.json | 4 ++-- react-native-camera.podspec | 7 ++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/RCTCamera.m b/RCTCamera.m index dcafa0e..fb63b21 100644 --- a/RCTCamera.m +++ b/RCTCamera.m @@ -84,6 +84,7 @@ - (void)removeFromSuperview { + [super removeFromSuperview]; [[NSNotificationCenter defaultCenter] removeObserver:self name:UIDeviceOrientationDidChangeNotification object:nil]; } diff --git a/package.json b/package.json index b54ee12..2a5303c 100644 --- a/package.json +++ b/package.json @@ -4,13 +4,13 @@ "type" : "git", "url" : "https://github.com/lwansbrough/react-native-camera.git" }, - "version": "0.2.8", + "version": "0.2.9", "description": "A Camera component for React Native. Also reads barcodes.", "main": "Camera.ios.js", "author": "Lochlan Wansbrough (http://lwansbrough.com)", "nativePackage": true, "peerDependencies": { - "react-native": "^0.4.0" + "react-native": "^0.4.3" }, "keywords": [ "react-native", diff --git a/react-native-camera.podspec b/react-native-camera.podspec index c7806e0..5275f02 100644 --- a/react-native-camera.podspec +++ b/react-native-camera.podspec @@ -1,13 +1,14 @@ Pod::Spec.new do |s| s.name = "react-native-camera" - s.version = "0.2.8" + s.version = "0.2.9" s.summary = "A Camera component for React Native. Also reads barcodes." - s.homepage = "http://github.com/lwansbrough/react-native-camera" + s.homepage = "https://github.com/lwansbrough/react-native-camera" s.license = { :type => "MIT", :file => "LICENSE" } s.author = { "Lochlan Wansbrough" => "lochie@live.com" } s.platform = :ios, "7.0" - s.source = { :git => "http://github.com/lwansbrough/react-native-camera.git", :tag => "v0.2.8" } + s.source = { :git => "https://github.com/lwansbrough/react-native-camera.git", :tag => "v0.2.8" } s.source_files = "*.{h,m}" s.requires_arc = true + s.dependency 'React' end