Skip to content

Commit 36b5635

Browse files
SankhadeepSankhadeep
Sankhadeep
authored and
Sankhadeep
committed
merged
2 parents 0748023 + 4f44433 commit 36b5635

File tree

5 files changed

+17
-527
lines changed

5 files changed

+17
-527
lines changed

Components/Widgets/CardItem.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,6 @@ export default class CardItemNB extends NativeBaseComponent {
253253
var newChildren = [];
254254

255255
if(!this.thumbnailPresent() && !this.iconPresent()) {
256-
257256
newChildren = React.Children.map(this.props.children, (child, i) => {
258257
return React.cloneElement(child, {...this.getChildProps(child), key: i});
259258
});

Components/Widgets/Input.js

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
/* @flow */
22
'use strict';
3-
43
import React from 'react';
54
import {View, TextInput} from 'react-native';
65
import NativeBaseComponent from '../Base/NativeBaseComponent';
76
import computeProps from '../../Utils/computeProps';
8-
97
export default class Input extends NativeBaseComponent {
108

11-
getInitialStyle() {
12-
return {
13-
input: {
14-
height: this.getTheme().inputHeightBase,
15-
color: this.getTheme().inputColor,
16-
paddingLeft: 5,
17-
paddingRight: 5
18-
}
19-
}
20-
}
9+
getInitialStyle() {
10+
return {
11+
input: {
12+
height: this.getTheme().inputHeightBase,
13+
color: this.getTheme().inputColor,
14+
paddingLeft: 5,
15+
paddingRight: 5
16+
}
17+
}
18+
}
2119

2220
prepareRootProps() {
23-
2421
var defaultProps = {
2522
style: this.getInitialStyle().input
2623
}
27-
24+
2825
return computeProps(this.props, defaultProps);
29-
3026
}
31-
3227
render() {
28+
3329
return (
3430
<View style={{ flex: 1}}>
3531
<TextInput {...this.prepareRootProps()} placeholderTextColor={ this.props.placeholderTextColor ? this.props.placeholderTextColor : this.getContextForegroundColor() ? this.getContextForegroundColor() : this.getTheme().inputColorPlaceholder } underlineColorAndroid='rgba(0,0,0,0)' />

0 commit comments

Comments
 (0)