diff --git a/src/components/Home/SmallDashboardItem.js b/src/components/Home/SmallDashboardItem.js index d3c8bab..6617c49 100644 --- a/src/components/Home/SmallDashboardItem.js +++ b/src/components/Home/SmallDashboardItem.js @@ -4,7 +4,7 @@ import * as React from 'react'; import {Badge, IconButton, withTheme} from 'react-native-paper'; import {View} from "react-native"; import type {CustomTheme} from "../../managers/ThemeManager"; - +import * as Animatable from "react-native-animatable"; type Props = { color: string, @@ -15,6 +15,9 @@ type Props = { theme: CustomTheme, }; +const AnimatableBadge = Animatable.createAnimatableComponent(Badge); +const AnimatableIconButton = Animatable.createAnimatableComponent(IconButton); + /** * Component used to render a small dashboard item */ @@ -31,7 +34,7 @@ class SmallDashboardItem extends React.Component { const colors = props.theme.colors; return ( - { /> { props.badgeNumber > 0 ? - {props.badgeNumber} - : null + : null } );