Fixed ref warning

This commit is contained in:
Arnaud Vergnet 2020-04-21 20:05:21 +02:00
parent 96ed75ac72
commit 20cff1aeb1

View file

@ -16,7 +16,6 @@ type Props = {
};
const AnimatableBadge = Animatable.createAnimatableComponent(Badge);
const AnimatableIconButton = Animatable.createAnimatableComponent(IconButton);
/**
* Component used to render a small dashboard item
@ -34,7 +33,7 @@ class SmallDashboardItem extends React.Component<Props> {
const colors = props.theme.colors;
return (
<View>
<AnimatableIconButton
<IconButton
icon={props.icon}
color={
props.isAvailable