Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Barcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


import React, {
PropTypes,

Component,
} from 'react'
import {
Expand All @@ -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

Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ public List<NativeModule> createNativeModules(ReactApplicationContext reactAppli
);
}

@Override
public List<Class<? extends JavaScriptModule>> createJSModules() {
public List<Class<? extends JavaScriptModule>> createJSModules() {
return Collections.emptyList();
}

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"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": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"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",
Expand All @@ -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"
}
Expand Down