Skip to content

Commit

Permalink
version 0.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
dabit3 committed Sep 16, 2016
1 parent c901b08 commit e4e9545
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 14 deletions.
5 changes: 3 additions & 2 deletions Readme.MD
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ import {
## Roadmap
- [ ] Add radio buttons
- [ ] Add icons to TextInputs
- [ ] Profile Component
- [ ] Profile Component `in progress`
- [ ] Add grid component `in progress`
- [ ] Custom Picker
- [ ] Side Menu Improvements
- [ ] Cross Platform Tab Bar
- [ ] Cross Platform Tab Bar `in progress`
- [ ] Something you's like to see? Submit an [issue](https://github.com/dabit3/React-Native-Elements/issues) or a [pull request](https://github.com/dabit3/React-Native-Elements/pulls)

## Examples
Expand Down
2 changes: 1 addition & 1 deletion src/config/colors.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default {
primary: '#397af8',
primary: '#9E9E9E',
primary1: '#4d86f7',
primary2: '#6296f9',
secondary: '#8F0CE8',
Expand Down
11 changes: 7 additions & 4 deletions src/icons/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ const Icon = ({
reverse ? color : underlayColor || color
}
style={[
styles.button,
raised && styles.raised, {
(reverse || raised) && styles.button,
(reverse || raised) && {
borderRadius: size + 4,
backgroundColor: reverse ? color : raised ? 'white' : 'transparent',
height: size * 2 + 4,
width: size * 2 + 4,
width: size * 2 + 4
},
raised && styles.raised,
{
backgroundColor: reverse ? color : raised ? 'white' : 'transparent',
alignItems: 'center',
justifyContent: 'center'},
containerStyle && containerStyle
Expand Down
19 changes: 12 additions & 7 deletions src/social/SocialIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,15 @@ const SocialIcon = ({
underlayColor={light ? 'white' : colors[type]}
onPress={onPress}
style={[
{justifyContent: 'center',
alignItems: 'center'},
raised && styles.raised,
styles.container,
button ? styles.button : styles.icon,
!button && iconSize && {width: iconSize * 2 + 4},
!button && iconSize && {height: iconSize * 2 + 4},
!button && iconSize && {borderRadius: iconSize * 2},
button && styles.button,
!button && raised && styles.icon,
!button && !light && !raised && {width: iconSize * 2 + 4},
!button && !light && !raised && {height: iconSize * 2 + 4},
!button && !light && !raised && {borderRadius: iconSize * 2},
{backgroundColor: colors[type]},
light && {backgroundColor: 'white'},
light && !raised && {marginLeft: 2, marginRight: 2},
style && style
]}>
<View style={styles.wrapper}>
Expand Down Expand Up @@ -116,6 +114,10 @@ styles = StyleSheet.create({
justifyContent: 'center',
alignItems: 'center'
},
button: {
paddingTop: 14,
paddingBottom: 14
},
raised: {
...Platform.select({
ios: {
Expand All @@ -130,6 +132,9 @@ styles = StyleSheet.create({
})
},
wrapper: {
flexDirection: 'row',
justifyContent: 'center',
alignItems: 'center'
},
title: {
color: 'white',
Expand Down

0 comments on commit e4e9545

Please sign in to comment.