WrathChaos / react-native-poll

Voting and poll library for React Native with fully customizable options
https://freakycoder.com
53 stars 21 forks source link

onChoicePress don't work #14

Open FeMicheletti opened 3 months ago

FeMicheletti commented 3 months ago

I'm using the RNPoll but my onChoicePess don't work, can you help me?

<RNPoll
                appearFrom          = "left"
                animationDuration   = {1000}
                totalVotes          = {55}
                style               = {{marginRight: 15, marginLeft: 15}}
                choiceTextStyle     = {{color: "#FFF"}}
                percentageTextStyle = {{color: "#FFF"}}
                checkMarkImageStyle = {{tintColor: "#FFF"}}
                borderColor         = {"#FFF"}
                fillBackgroundColor = {"rgba(52, 52, 52, 0.6)"}
                hasBeenVoted        = {votedOption != "0"}
                votedChoiceByID     = {votedOption}
                choices             = {option}
                PollContainer       = {RNAnimated}
                PollItemContainer   = {RNAnimated}
                key                 = {refreshPoll}
                onChoicePress       = {() => {console.log('teste');}}
            />
WrathChaos commented 3 months ago

Hello @FeMicheletti

I am trying to reproduce it now

FeMicheletti commented 3 months ago

Hello @WrathChaos How are you? After a lot of searching I discovered is with my cellphone, after trying compile on my desktop it works well. Now I'm trying add a way to the person who voted has chance to alter their vote. Do You know a way?

WrathChaos commented 3 months ago

Hey @FeMicheletti

Thanks a lot, I hope you're doing well too :)

Unfortunately, right now there is no way to reset/undo the selection. I am going to support it within the library