Skip to content

Commit

Permalink
Move NotificationBadge to left side of icon
Browse files Browse the repository at this point in the history
  • Loading branch information
yutotakano committed Sep 10, 2019
1 parent d4dc08f commit 6bfdf77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/components/GreetingsCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ class GreetingsCard extends React.PureComponent {
});
}}
>
<NotificationBadge style={{ position: 'relative' }}/>
<Icon
name={
this.props.notificationCount
Expand All @@ -125,7 +126,6 @@ class GreetingsCard extends React.PureComponent {
}
color={colors.primary}
/>
<NotificationBadge />
</TouchableOpacity>
</View>
);
Expand Down Expand Up @@ -162,7 +162,10 @@ const greetingsCardStyles = StyleSheet.create({
notificationIcon: {
position: 'absolute',
top: 16,
right: 8
right: 8,
height: 24,
flexDirection: 'row',
alignItems: 'center'
}
});

Expand Down
1 change: 0 additions & 1 deletion src/components/NotificationBadge.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const notificationBadgeStyles = StyleSheet.create({
top: -5,
color: colors.white,
backgroundColor: colors.primary

}
});

Expand Down

0 comments on commit 6bfdf77

Please sign in to comment.