From c1e0a88d7e11cb2e8bc8bd853e03959e40eb6d4d Mon Sep 17 00:00:00 2001 From: windwang Date: Thu, 24 Aug 2017 18:17:20 +0800 Subject: [PATCH 1/6] Update RCTCapturePackage.java --- .../com/reactnativecomponent/barcode/RCTCapturePackage.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/android/src/main/java/com/reactnativecomponent/barcode/RCTCapturePackage.java b/android/src/main/java/com/reactnativecomponent/barcode/RCTCapturePackage.java index f0a397d..8dc2c79 100644 --- a/android/src/main/java/com/reactnativecomponent/barcode/RCTCapturePackage.java +++ b/android/src/main/java/com/reactnativecomponent/barcode/RCTCapturePackage.java @@ -38,8 +38,7 @@ public List createNativeModules(ReactApplicationContext reactAppli ); } - @Override - public List> createJSModules() { + public List> createJSModules() { return Collections.emptyList(); } From 700a666c2b2e70b6b281669872153f2a82f846da Mon Sep 17 00:00:00 2001 From: windwang Date: Fri, 25 Aug 2017 09:06:10 +0800 Subject: [PATCH 2/6] Update package.json --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 23fd36e..27b164d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-smart-barcode", - "version": "1.0.6", + "version": "1.0.7", "description": "A smart barcode scanner component for React Native app", "main": "Barcode.js", "scripts": { @@ -8,7 +8,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/react-native-component/react-native-smart-barcode.git" + "url": "git+https://github.com/windwang/react-native-smart-barcode.git" }, "keywords": [ "react-native", @@ -19,9 +19,9 @@ "author": "HISAME SHIZUMARU", "license": "MIT", "bugs": { - "url": "https://github.com/react-native-component/react-native-smart-barcode/issues" + "url": "https://github.com/windwang/react-native-smart-barcode/issues" }, - "homepage": "https://github.com/react-native-component/react-native-smart-barcode#readme", + "homepage": "https://github.com/windwang/react-native-smart-barcode#readme", "peerDependencies": { "react-native": ">=0.40.0" } From 58cbb4fd9c5865eb6166acc828b06032523a4260 Mon Sep 17 00:00:00 2001 From: windwang Date: Fri, 20 Oct 2017 15:55:29 +0800 Subject: [PATCH 3/6] update to RN0.49 --- Barcode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Barcode.js b/Barcode.js index 0fdb6ac..f2cfe84 100644 --- a/Barcode.js +++ b/Barcode.js @@ -7,7 +7,7 @@ import React, { - PropTypes, + Component, } from 'react' import { @@ -17,6 +17,7 @@ import { AppState, Platform, } from 'react-native' +import PropTypes from 'prop-types' const BarcodeManager = Platform.OS == 'ios' ? NativeModules.Barcode : NativeModules.CaptureModule From 447d5ea988018f43bf750cd9042ca94ae954ef3d Mon Sep 17 00:00:00 2001 From: windwang Date: Fri, 20 Oct 2017 15:55:56 +0800 Subject: [PATCH 4/6] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 27b164d..8e178dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-smart-barcode", - "version": "1.0.7", + "version": "1.0.8", "description": "A smart barcode scanner component for React Native app", "main": "Barcode.js", "scripts": { From f14abb94105aaa6d6417f32314c127f286af547b Mon Sep 17 00:00:00 2001 From: windwang Date: Thu, 26 Oct 2017 16:17:40 +0800 Subject: [PATCH 5/6] update ViewPropTypes --- Barcode.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Barcode.js b/Barcode.js index f2cfe84..5c07550 100644 --- a/Barcode.js +++ b/Barcode.js @@ -16,6 +16,7 @@ import { NativeModules, AppState, Platform, + ViewPropTypes } from 'react-native' import PropTypes from 'prop-types' @@ -35,7 +36,7 @@ export default class Barcode extends Component { } static propTypes = { - ...View.propTypes, + ...ViewPropTypes, onBarCodeRead: PropTypes.func.isRequired, barCodeTypes: PropTypes.array, scannerRectWidth: PropTypes.number, From 51ce72965dce826bbc240b0ff7c7b5e35058df53 Mon Sep 17 00:00:00 2001 From: windwang Date: Thu, 26 Oct 2017 16:17:55 +0800 Subject: [PATCH 6/6] Update package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8e178dd..d0ca5a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-smart-barcode", - "version": "1.0.8", + "version": "1.0.9", "description": "A smart barcode scanner component for React Native app", "main": "Barcode.js", "scripts": {