CupThread React Native & Expo SDK - v0.1.0
    Preparing search index...

    Interface VoteButtonProps

    Props for configuring the VoteButton upvote counter component.

    <VoteButton
    voteCount={42}
    hasVoted={true}
    onPress={() => toggleVote(item.id)}
    disabled={false}
    />
    interface VoteButtonProps {
        disabled?: boolean;
        hasVoted: boolean;
        onPress: () => void;
        voteCount: number;
    }
    Index
    disabled?: boolean

    Whether the button is disabled from user interactions (e.g. while submitting or for own requests).

    hasVoted: boolean

    Whether the active user has cast an upvote on this item.

    onPress: () => void

    Callback invoked when the vote button is tapped.

    voteCount: number

    Total number of upvotes currently recorded.