Skip to content

Commit

Permalink
Merge branch 'master' of github.com:GeekyAnts/NativeBase
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshu-satija committed Dec 26, 2016
2 parents 4512e7a + 4343505 commit 4cb684d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
52 changes: 26 additions & 26 deletions Components/Widgets/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,35 +20,35 @@ export default class IconNB extends NativeBaseComponent {
}

contextTypes: {
theme: React.PropTypes.object
theme: React.PropTypes.object
}

componentWillMount() {
switch(this.getTheme().iconFamily) {
case 'Ionicons':
this.Icon = Ionicons;
break;
case 'Entypo':
this.Icon = Entypo;
break;
case 'FontAwesome':
this.Icon = FontAwesome;
break;
case 'Foundation':
this.Icon = Foundation;
break;
case 'MaterialIcons':
this.Icon = MaterialIcons;
break;
case 'Octicons':
this.Icon = Octicons;
break;
case 'Zocial':
this.Icon = Zocial;
break;
default:
this.Icon = Ionicons;
}
switch(this.getTheme().iconFamily) {
case 'Ionicons':
this.Icon = Ionicons;
break;
case 'Entypo':
this.Icon = Entypo;
break;
case 'FontAwesome':
this.Icon = FontAwesome;
break;
case 'Foundation':
this.Icon = Foundation;
break;
case 'MaterialIcons':
this.Icon = MaterialIcons;
break;
case 'Octicons':
this.Icon = Octicons;
break;
case 'Zocial':
this.Icon = Zocial;
break;
default:
this.Icon = Ionicons;
}
}

static getImageSource = FontAwesome.getImageSource
Expand Down
4 changes: 2 additions & 2 deletions Components/Widgets/Picker.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export default class PickerNB extends NativeBaseComponent {
}

render() {
let additionalProps = {marginLeft: -35};
let additionalProps = {};
if(this.props.inlineLabel) {
additionalProps = {paddingHorizontal: 4, justifyContent: 'flex-start', alignSelf: 'stretch'};
}
Expand All @@ -111,7 +111,7 @@ export default class PickerNB extends NativeBaseComponent {
style={[this.props.style,additionalProps]}
onPress={() => {this._setModalVisible(true)}}>
{this.state.currentLabel}
{(this.props.iosIcon == undefined) ? '' : this.renderIcon()}
{(this.props.iosIcon == undefined) ? <View style={{ width: 0, height: 0 }} /> : this.renderIcon()}
</Button>
<Modal animationType='slide'
transparent={false}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# NativeBase v0.5.13
# NativeBase v0.5.18
Essential cross-platform UI components for React Native


Expand Down

0 comments on commit 4cb684d

Please sign in to comment.