codestyle

This commit is contained in:
Overtorment 2018-03-18 02:52:01 +00:00 committed by Igor Korsakov
parent f84f797f28
commit 0718687fc0
4 changed files with 6 additions and 6 deletions

View file

@ -29,7 +29,7 @@
"android": "react-native-scripts android",
"ios": "react-native-scripts ios",
"postinstall": "./node_modules/.bin/rn-nodeify --install buffer,events,process,stream,util,inherits,fs,path --hack",
"test": "nodejs ./node_modules/.bin/mocha tests/* && node node_modules/jest/bin/jest.js",
"test": "nodejs ./node_modules/.bin/mocha tests/* && node node_modules/jest/bin/jest.js && npm run lint",
"lint": "./node_modules/.bin/eslint *.js screen/**/*.js --fix"
},
"jest": {

View file

@ -61,7 +61,7 @@ export default class CameraExample extends React.Component {
<Camera
style={{ flex: 1 }}
type={this.state.type}
onBarCodeRead={(ret) => this.onBarCodeRead(ret)}
onBarCodeRead={ret => this.onBarCodeRead(ret)}
>
<View
style={{

View file

@ -96,7 +96,7 @@ export default class CameraExample extends React.Component {
<Camera
style={{ flex: 1 }}
type={this.state.type}
onBarCodeRead={(ret) => this.onBarCodeRead(ret)}
onBarCodeRead={ret => this.onBarCodeRead(ret)}
>
<View
style={{

View file

@ -33,11 +33,11 @@ export default class CameraExample extends React.Component {
};
async onBarCodeRead(ret) {
console.log('onBarCodeRead', ret)
console.log('onBarCodeRead', ret);
for (let w of BlueApp.wallets) {
// lookig for duplicates
if (w.getSecret() === ret.data) {
alert('Such wallet already exists')
alert('Such wallet already exists');
return; // duplicate, not adding
}
}
@ -98,7 +98,7 @@ export default class CameraExample extends React.Component {
<Camera
style={{ flex: 1 }}
type={this.state.type}
onBarCodeRead={(ret) => this.onBarCodeRead(ret)}
onBarCodeRead={ret => this.onBarCodeRead(ret)}
>
<View
style={{