Skip to content

Commit 3972658

Browse files
Sankhadeep RoySankhadeep Roy
authored andcommitted
merged with master
2 parents 75f95d1 + 196c50d commit 3972658

18 files changed

+269
-76
lines changed

Components/Base/NativeBaseComponent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ export default class NativeBaseComponent extends Component {
1111
}
1212

1313
static propTypes = {
14-
theme: React.PropTypes.object
14+
theme: React.PropTypes.object,
15+
foregroundColor: React.PropTypes.string
1516
}
1617

1718
static childContextTypes = {

Components/Widgets/Button.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default class Button extends NativeBaseComponent {
2424
shadowColor: '#000',
2525
shadowOffset: {width: 0, height: 2},
2626
shadowOpacity: 0.1,
27-
shadowRadius: 1.5,
27+
shadowRadius: 1.5
2828
}
2929
}
3030
}
@@ -99,7 +99,7 @@ export default class Button extends NativeBaseComponent {
9999
this.getTheme().inverseTextColor,
100100

101101
fontSize: (this.props.large) ? this.getTheme().iconSizeLarge : (this.props.small) ? this.getTheme().iconSizeSmall : this.getTheme().iconFontSize,
102-
lineHeight: (this.props.large) ? 52: (this.props.small) ? 22 : 39,
102+
lineHeight: (this.props.large) ? 52: (this.props.small) ? 22 : 39
103103
}
104104

105105
var defaultProps = {

Components/Widgets/CheckBox.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

Components/Widgets/Input.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,17 @@ export default class Input extends NativeBaseComponent {
1919
}
2020
}
2121

22-
prepareRootProps() {
22+
prepareRootProps() {
2323

24-
var defaultProps = {
25-
style: this.getInitialStyle().input
26-
}
27-
28-
return computeProps(this.props, defaultProps);
24+
var defaultProps = {
25+
style: this.getInitialStyle().input
26+
}
2927

30-
}
28+
return computeProps(this.props, defaultProps);
3129

32-
render() {
30+
}
3331

32+
render() {
3433
return (
3534
<View style={{ flex: 1}}>
3635
<TextInput {...this.prepareRootProps()} placeholderTextColor={ this.getContextForegroundColor() ? this.getContextForegroundColor() : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' />

Components/Widgets/InputGroup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'use strict';
33

44
import React from 'react';
5-
import {Text, View, PixelRatio} from 'react-native';
5+
import {Text, View} from 'react-native';
66
import NativeBaseComponent from '../Base/NativeBaseComponent';
77
import Icon from './Icon';
88
import computeProps from '../../Utils/computeProps';

Components/Widgets/ListItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class ListItemNB extends NativeBaseComponent {
7070
width: 300,
7171
height: 300
7272
},
73-
itemButton: {},
73+
itemButton: {}
7474

7575
}
7676
}

Components/Widgets/ProgressBar.android.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
'use strict';
33

44
import React from 'react';
5-
import { ActivityIndicatorIOS, Platform } from 'react-native';
65
import ProgressBar from "ProgressBarAndroid";
76
import NativeBaseComponent from '../Base/NativeBaseComponent';
87
import computeProps from '../../Utils/computeProps';

Components/Widgets/ProgressBar.ios.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import React from 'react';
55
import { ProgressViewIOS} from 'react-native';
66
import NativeBaseComponent from '../Base/NativeBaseComponent';
7-
import computeProps from '../../Utils/computeProps';
7+
// import computeProps from '../../Utils/computeProps';
88

99

1010
export default class ProgressBarNB extends NativeBaseComponent {
@@ -13,10 +13,10 @@ export default class ProgressBarNB extends NativeBaseComponent {
1313

1414
render() {
1515
return(
16-
<ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5}
17-
progressTintColor={this.props.color ? this.props.color : this.props.inverse ?
18-
this.getTheme().inverseProgressColor :
19-
this.getTheme().defaultProgressColor} />
16+
<ProgressViewIOS progress={this.props.progress ? this.props.progress/100 : 0.5}
17+
progressTintColor={ this.props.color ? this.props.color :
18+
this.props.inverse ? this.getTheme().inverseProgressColor :
19+
this.getTheme().defaultProgressColor} />
2020
);
2121
}
2222

Components/Widgets/Spinner.android.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
'use strict';
33

44
import React from 'react';
5-
import { ActivityIndicatorIOS, Platform } from 'react-native';
65
import ProgressBar from "ProgressBarAndroid";
76
import NativeBaseComponent from '../Base/NativeBaseComponent';
87
import computeProps from '../../Utils/computeProps';

Components/Widgets/Spinner.ios.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
'use strict';
33

44
import React from 'react';
5-
import { ActivityIndicatorIOS, Platform } from 'react-native';
5+
import { ActivityIndicatorIOS } from 'react-native';
66
import NativeBaseComponent from '../Base/NativeBaseComponent';
77
import computeProps from '../../Utils/computeProps';
88

0 commit comments

Comments
 (0)