import React from 'react'; import { ImageProps, StyleProp, View, ViewStyle } from 'react-native'; import { Icon, Image, Text, createStyleSheet, useUIKitTheme } from '@sendbird/uikit-react-native-foundation'; import { truncatedCount } from '@sendbird/uikit-utils'; type Props = { source: ImageProps['source']; count: number; reacted: boolean; style: StyleProp; /** * @deprecated Please use `source` instead * */ url?: string; }; const ReactionRoundedButton = ({ source, count, reacted, style, url }: Props) => { const { colors } = useUIKitTheme(); const color = colors.ui.reaction.rounded; return ( {truncatedCount(count, 99, '')} ); }; ReactionRoundedButton.More = ({ pressed }: { pressed: boolean }) => { const { colors } = useUIKitTheme(); const color = colors.ui.reaction.rounded; return ( ); }; const styles = createStyleSheet({ reactionContainer: { flexDirection: 'row', justifyContent: 'center', alignItems: 'center', width: 52, borderRadius: 24, paddingVertical: 5, paddingHorizontal: 8, }, emoji: { width: 20, height: 20, marginEnd: 4, }, count: { width: 13, textAlign: 'left', }, }); export default ReactionRoundedButton;