react-native-poll icon indicating copy to clipboard operation
react-native-poll copied to clipboard

onChoicePress don't work

Open FeMicheletti opened this issue 1 year ago • 3 comments

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');}}
            />

FeMicheletti avatar May 18 '24 21:05 FeMicheletti

Hello @FeMicheletti

I am trying to reproduce it now

WrathChaos avatar May 20 '24 08:05 WrathChaos

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?

FeMicheletti avatar May 20 '24 22:05 FeMicheletti

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

WrathChaos avatar May 21 '24 12:05 WrathChaos