File tree Expand file tree Collapse file tree 4 files changed +1018
-377
lines changed Expand file tree Collapse file tree 4 files changed +1018
-377
lines changed Original file line number Diff line number Diff line change 9
9
"react/jsx-filename-extension": 0,
10
10
"react/prefer-stateless-function": 0,
11
11
"react/sort-comp": 0,
12
+ "react/destructuring-assignment": "never",
12
13
"no-use-before-define": 0,
13
14
"no-underscore-dangle": 0,
14
15
"import/no-extraneous-dependencies": 0,
Original file line number Diff line number Diff line change 21
21
},
22
22
"devDependencies" : {
23
23
"babel-eslint" : " 10.0.1" ,
24
- "babel-jest" : " 23.0.1 " ,
25
- "babel-preset-airbnb" : " 2.6 .0" ,
24
+ "babel-jest" : " ^ 23.6.0 " ,
25
+ "babel-preset-airbnb" : " ^3.2 .0" ,
26
26
"babel-preset-react-native" : " 4.0.1" ,
27
27
"eslint" : " 5.12.0" ,
28
- "eslint-config-airbnb" : " 16 .1.0" ,
28
+ "eslint-config-airbnb" : " ^17 .1.0" ,
29
29
"eslint-plugin-import" : " 2.14.0" ,
30
30
"eslint-plugin-jsx-a11y" : " 6.1.2" ,
31
31
"eslint-plugin-prefer-object-spread" : " 1.2.1" ,
32
32
"eslint-plugin-react" : " 7.12.3" ,
33
- "jest" : " 23.1 .0" ,
33
+ "jest" : " ^ 23.6 .0" ,
34
34
"react-test-renderer" : " 16.3.2"
35
35
},
36
36
"jest" : {
Original file line number Diff line number Diff line change @@ -345,31 +345,36 @@ export default class App extends Component {
345
345
</ View >
346
346
347
347
< Text style = { styles . lastCheckedText } >
348
- Last Checked: { this . state . lastChecked === '0' ? 'Never' : moment ( parseFloat ( this . state . lastChecked ) ) . fromNow ( ) }
348
+ Last Checked:
349
+ { this . state . lastChecked === '0' ? 'Never' : moment ( parseFloat ( this . state . lastChecked ) ) . fromNow ( ) }
349
350
</ Text >
350
351
351
- { this . state . taskSet === 'no' && < Button
352
- style = { styles . checkingButton }
353
- title = "Start Checking"
354
- onPress = { this . createPrefetchJobs }
355
- /> }
356
- { this . state . taskSet === 'yes' && < Button
357
- style = { styles . checkingButton }
358
- title = "Stop Checking"
359
- onPress = { this . deletePrefetchJobs }
360
- /> }
352
+ { this . state . taskSet === 'no' && (
353
+ < Button
354
+ style = { styles . checkingButton }
355
+ title = "Start Checking"
356
+ onPress = { this . createPrefetchJobs }
357
+ />
358
+ ) }
359
+ { this . state . taskSet === 'yes' && (
360
+ < Button
361
+ style = { styles . checkingButton }
362
+ title = "Stop Checking"
363
+ onPress = { this . deletePrefetchJobs }
364
+ />
365
+ ) }
361
366
362
367
{ this . state . loading && < ActivityIndicator size = "large" color = "#7a42f4" /> }
363
368
364
- { this . state . taskSet === 'yes' && this . state . url !== '' &&
369
+ { this . state . taskSet === 'yes' && this . state . url !== '' && (
365
370
< WebView
366
371
style = { styles . webview }
367
372
source = { { uri : this . state . url } }
368
373
dataDetectorTypes = "all"
369
374
scalesPageToFit = { false }
370
375
{ ...webViewProps }
371
376
/>
372
- }
377
+ ) }
373
378
374
379
</ ScrollView >
375
380
) ;
You can’t perform that action at this time.
0 commit comments