Skip to content

Commit

Permalink
feat: add smooth icon change in IconButton component (#672)
Browse files Browse the repository at this point in the history
* feat: smooth icon change in `IconButton`

* test: update snapshots
  • Loading branch information
jaulz authored and Trancever committed Jan 7, 2019
1 parent 1059b50 commit 54f1ece
Show file tree
Hide file tree
Showing 2 changed files with 234 additions and 102 deletions.
4 changes: 2 additions & 2 deletions src/components/IconButton.js
Expand Up @@ -5,7 +5,7 @@ import { View, StyleSheet } from 'react-native';
import color from 'color';

import TouchableRipple from './TouchableRipple';
import Icon from './Icon';
import CrossFadeIcon from './CrossFadeIcon';
import { withTheme } from '../core/theming';
import type { IconSource } from './Icon';
import type { Theme, $RemoveChildren } from '../types';
Expand Down Expand Up @@ -111,7 +111,7 @@ const IconButton = ({
{...rest}
>
<View>
<Icon color={iconColor} source={icon} size={size} />
<CrossFadeIcon color={iconColor} source={icon} size={size} />
</View>
</TouchableRipple>
);
Expand Down

0 comments on commit 54f1ece

Please sign in to comment.