Commit 362cbd92 authored by SYRain's avatar SYRain
Browse files

修复扫描二维码问题, disable eslint pre-commit

parent e61c5273
......@@ -6,8 +6,6 @@ module.exports = {
"jquery": true
},
"extends": [
"airbnb",
"plugin:prettier/recommended"
],
"globals": {
"Atomics": "readonly",
......
......@@ -11,9 +11,6 @@
"format": "prettier --config ./.prettierrc --write ./src/**/*.js",
"release": "cd android && gradlew assembleRelease"
},
"pre-commit": [
"lint"
],
"dependencies": {
"@react-native-community/async-storage": "^1.4.0",
"axios": "^0.18.0",
......
......@@ -55,7 +55,6 @@ export default class ProblemListScene extends React.Component {
}
itemClick(item){
// Alert.alert('clicked' + item.slice(0, item.indexOf('.')));
this.state.pro_id = item.slice(0, item.indexOf('.'))
ProblemScene.setProblemId(this.state.pro_id);
this.props.navigation.dispatch(StackActions.push({
......
......@@ -82,7 +82,7 @@ export default class ScannerScreen extends React.Component {
}
}
barcodeReceived(e, { navigation }) {
barcodeReceived(e) {
const {
state: { show }
} = this;
......@@ -91,7 +91,7 @@ export default class ScannerScreen extends React.Component {
if (e) {
const result = e.data;
VideoScene.setVideoURL(result); // 将结果存放到视频组件的播放地址中
navigation.dispatch(
this.props.navigation.dispatch(
StackActions.reset({
index: 0,
actions: [NavigationActions.navigate({ routeName: 'Video' })]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment