Skip to content

Commit 7501aeb

Browse files
Himanshu SatijaHimanshu Satija
authored andcommitted
code formatting
1 parent 34d99f5 commit 7501aeb

File tree

22 files changed

+32
-183
lines changed

22 files changed

+32
-183
lines changed

Components/Themes/dark.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
var Color = require("color")
2-
3-
var multiply = require('multiplier');
1+
import Color from 'color';
2+
import multiply from 'multiplier';
43

54
var fontSizeBase = 15;
65
var borderRadiusBase = 4;
7-
var borderRadiusBase = 4;
86
var contentPadding = 10;
97

108
module.exports = {
@@ -68,7 +66,7 @@ module.exports = {
6866
return this.textColor;
6967
},
7068
get btnWarningBg () {
71-
return this. brandWarning;
69+
return this.brandWarning;
7270
},
7371
get btnWarningColor () {
7472
return this.textColor;
@@ -82,7 +80,7 @@ module.exports = {
8280
inputColorPlaceholder: "rgba(256,256,256,0.8)",
8381
inputPaddingLeft: 5,
8482
get inputPaddingLeftIcon () {
85-
return multiply(inputPaddingLeft, 8);;
83+
return multiply(this.inputPaddingLeft, 8);
8684
},
8785

8886
dropdownBg: "#fff",

Components/Widgets/Badge.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
/* @flow */
22
'use strict';
33

4-
import React, {Text, View } from 'react-native';
4+
import React, {Text} from 'react-native';
55
import NativeBaseComponent from '../Base/NativeBaseComponent';
6-
import _ from 'lodash';
76
import computeProps from '../../Utils/computeProps';
7+
import _ from 'lodash';
88

99

1010
export default class BadgeNB extends NativeBaseComponent {
11-
static childContextTypes = {
12-
theme: React.PropTypes.object
13-
}
14-
15-
getChildContext() {
16-
return {theme: this.props.theme ? this.props.theme : this.getTheme()};
17-
}
1811

1912
prepareRootProps() {
2013

Components/Widgets/Card.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,10 @@
33

44
import React, {View} from 'react-native';
55
import NativeBaseComponent from '../Base/NativeBaseComponent';
6-
import _ from 'lodash';
76
import computeProps from '../../Utils/computeProps';
7+
import _ from 'lodash';
88

99
export default class CardNB extends NativeBaseComponent {
10-
static childContextTypes = {
11-
theme: React.PropTypes.object
12-
}
13-
14-
getChildContext() {
15-
return {theme: this.props.theme ? this.props.theme : this.getTheme()};
16-
}
1710

1811
getInitialStyle() {
1912
return {

Components/Widgets/CheckBox.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,11 @@
33

44
import React from 'react-native';
55
import NativeBaseComponent from '../Base/NativeBaseComponent';
6-
import _ from 'lodash';
76
import computeProps from '../../Utils/computeProps';
87
import Checkbox from 'react-native-checkbox';
8+
import _ from 'lodash';
99

1010
export default class CheckBox extends NativeBaseComponent {
11-
static childContextTypes = {
12-
theme: React.PropTypes.object
13-
}
14-
15-
getChildContext() {
16-
return {theme: this.props.theme ? this.props.theme : this.getTheme()};
17-
}
1811

1912
getInitialStyle() {
2013
return {

Components/Widgets/Container.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,13 @@
22
'use strict';
33

44
import React, {View } from 'react-native';
5-
import _ from 'lodash';
65
import Header from './Header';
76
import Content from './Content';
87
import Footer from './Footer';
98
import NativeBaseComponent from '../Base/NativeBaseComponent';
9+
import _ from 'lodash';
1010

1111
export default class Container extends NativeBaseComponent {
12-
static childContextTypes = {
13-
theme: React.PropTypes.object
14-
}
15-
16-
getChildContext() {
17-
return {theme: this.props.theme ? this.props.theme : this.getTheme()};
18-
}
1912

2013
renderHeader() {
2114
console.log(this.context.theme);

Components/Widgets/Content.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,11 @@
33

44
import React, {Text, View, ScrollView } from 'react-native';
55
import NativeBaseComponent from '../Base/NativeBaseComponent';
6-
import _ from 'lodash';
76
import computeProps from '../../Utils/computeProps';
7+
import _ from 'lodash';
88

99

1010
export default class Content extends NativeBaseComponent {
11-
static childContextTypes = {
12-
theme: React.PropTypes.object
13-
}
14-
15-
getChildContext() {
16-
return {theme: this.props.theme ? this.props.theme : this.getTheme()};
17-
}
1811

1912
prepareRootProps() {
2013

Components/Widgets/Footer.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,10 @@
33

44
import React, { Text, View, TouchableOpacity, Component, Platform} from 'react-native';
55
import NativeBaseComponent from '../Base/NativeBaseComponent';
6-
import navbarStyle from './../Styles/navbar.js';
7-
import _ from 'lodash';
86
import computeProps from '../../Utils/computeProps';
7+
import _ from 'lodash';
98

109
export default class Footer extends NativeBaseComponent {
11-
static childContextTypes = {
12-
theme: React.PropTypes.object
13-
}
14-
15-
getChildContext() {
16-
return {theme: this.props.theme ? this.props.theme : this.getTheme()};
17-
}
1810

1911
getInitialStyle() {
2012
return {

Components/Widgets/H1.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,12 @@
33

44
import React, {Text } from 'react-native';
55
import NativeBaseComponent from '../Base/NativeBaseComponent';
6-
import _ from 'lodash';
76
import computeProps from '../../Utils/computeProps';
7+
import _ from 'lodash';
88

99

1010
export default class H1NB extends NativeBaseComponent {
11-
static childContextTypes = {
12-
theme: React.PropTypes.object
13-
}
14-
15-
getChildContext() {
16-
return {theme: this.props.theme ? this.props.theme : this.getTheme()};
17-
}
18-
11+
1912
prepareRootProps() {
2013

2114
var type = {

Components/Widgets/H2.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,12 @@
33

44
import React, {Text } from 'react-native';
55
import NativeBaseComponent from '../Base/NativeBaseComponent';
6-
import _ from 'lodash';
76
import computeProps from '../../Utils/computeProps';
7+
import _ from 'lodash';
88

99

1010
export default class H2NB extends NativeBaseComponent {
11-
static childContextTypes = {
12-
theme: React.PropTypes.object
13-
}
1411

15-
getChildContext() {
16-
return {theme: this.props.theme ? this.props.theme : this.getTheme()};
17-
}
18-
1912
prepareRootProps() {
2013

2114
var type = {

Components/Widgets/H3.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,12 @@
33

44
import React, {Text } from 'react-native';
55
import NativeBaseComponent from '../Base/NativeBaseComponent';
6-
import _ from 'lodash';
76
import computeProps from '../../Utils/computeProps';
7+
import _ from 'lodash';
88

99

1010
export default class H3NB extends NativeBaseComponent {
11-
static childContextTypes = {
12-
theme: React.PropTypes.object
13-
}
1411

15-
getChildContext() {
16-
return {theme: this.props.theme ? this.props.theme : this.getTheme()};
17-
}
18-
1912
prepareRootProps() {
2013

2114
var type = {

0 commit comments

Comments
 (0)