diff --git a/src/view/com/util/PostCtrls.tsx b/src/view/com/util/PostCtrls.tsx index 7803c479..0ca13b62 100644 --- a/src/view/com/util/PostCtrls.tsx +++ b/src/view/com/util/PostCtrls.tsx @@ -11,7 +11,12 @@ import {FontAwesomeIcon} from '@fortawesome/react-native-fontawesome' import ReactNativeHapticFeedback from 'react-native-haptic-feedback' import {Text} from './text/Text' import {PostDropdownBtn} from './forms/DropdownButton' -import {HeartIcon, HeartIconSolid, CommentBottomArrow} from '../../lib/icons' +import { + HeartIcon, + HeartIconSolid, + RepostIcon, + CommentBottomArrow, +} from '../../lib/icons' import {s, colors} from '../../lib/styles' import {useTheme} from '../../lib/ThemeContext' import {useAnimatedValue} from '../../lib/hooks/useAnimatedValue' @@ -143,12 +148,12 @@ export function PostCtrls(opts: PostCtrlsOpts) { onPress={onPressToggleRepostWrapper} style={styles.ctrl}> - {typeof opts.repostCount !== 'undefined' ? ( diff --git a/src/view/lib/icons.tsx b/src/view/lib/icons.tsx index e972a79d..51299b3e 100644 --- a/src/view/lib/icons.tsx +++ b/src/view/lib/icons.tsx @@ -225,6 +225,27 @@ export function UserGroupIcon({ ) } +export function RepostIcon({ + style, + size = 24, + strokeWidth = 1.5, +}: { + style?: StyleProp + size?: string | number + strokeWidth: number +}) { + return ( + + + + ) +} + // Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. export function HeartIcon({ style,