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
8 changes: 5 additions & 3 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 Expand Up @@ -78,4 +80,4 @@ export default class Barcode extends Component {
}
}

const NativeBarCode = requireNativeComponent(Platform.OS == 'ios' ? 'RCTBarcode' : 'CaptureView', Barcode)
const NativeBarCode = requireNativeComponent(Platform.OS == 'ios' ? 'RCTBarcode' : 'CaptureView', Barcode)
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ public List<NativeModule> createNativeModules(ReactApplicationContext reactAppli
);
}

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

@Override
public List<ViewManager> createViewManagers(ReactApplicationContext reactApplicationContext) {
//noinspection ArraysAsListWithZeroOrOneArgument
Expand Down