diff --git a/Barcode.js b/Barcode.js index 0fdb6ac..5c07550 100644 --- a/Barcode.js +++ b/Barcode.js @@ -7,7 +7,7 @@ import React, { - PropTypes, + Component, } from 'react' import { @@ -16,7 +16,9 @@ import { NativeModules, AppState, Platform, + ViewPropTypes } from 'react-native' +import PropTypes from 'prop-types' const BarcodeManager = Platform.OS == 'ios' ? NativeModules.Barcode : NativeModules.CaptureModule @@ -34,7 +36,7 @@ export default class Barcode extends Component { } static propTypes = { - ...View.propTypes, + ...ViewPropTypes, onBarCodeRead: PropTypes.func.isRequired, barCodeTypes: PropTypes.array, scannerRectWidth: PropTypes.number, 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(); } diff --git a/package.json b/package.json index 23fd36e..d0ca5a6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-smart-barcode", - "version": "1.0.6", + "version": "1.0.9", "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" }