File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ class NavBarContent extends React.Component {
149
149
let titleContent ;
150
150
let TitleComponent ;
151
151
let trans ;
152
- let width ;
153
- let color ;
152
+ const width = this . props . borderBottomWidth ? this . props . borderBottomWidth : 0 ;
153
+ const color = this . props . borderColor ? this . props . borderColor : null ;
154
154
155
155
/**
156
156
* Set leftCorner
@@ -261,9 +261,6 @@ class NavBarContent extends React.Component {
261
261
trans = { } ;
262
262
}
263
263
264
- width = this . props . borderBottomWidth ? this . props . borderBottomWidth : 0 ;
265
- color = this . props . borderColor ? this . props . borderColor : null ;
266
-
267
264
return (
268
265
< Animated . View
269
266
style = {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class NavButton extends React.Component {
33
33
34
34
if ( this . props . backButtonComponent ) {
35
35
BackButton = this . props . backButtonComponent ;
36
- backButton = < View > < BackButton /> </ View > ;
36
+ backButton = < View > < BackButton /> </ View > ;
37
37
} else {
38
38
backButton = < Text style = { this . styles . navbarText } > Back</ Text > ;
39
39
}
Original file line number Diff line number Diff line change 40
40
"react-native" : " *"
41
41
},
42
42
"devDependencies" : {
43
- "eslint" : " ^1.10.3" ,
44
- "eslint-config-airbnb" : " ^3.1.0" ,
45
- "eslint-plugin-react" : " ^3.15.0"
43
+ "eslint" : " ^2.7.0" ,
44
+ "eslint-config-airbnb" : " ^7.0.0" ,
45
+ "eslint-plugin-react" : " ^4.3.0" ,
46
+ "eslint-plugin-jsx-a11y" : " ^0.6.2"
46
47
}
47
48
}
You can’t perform that action at this time.
0 commit comments