react-native-poll
react-native-poll copied to clipboard
onChoicePress don't work
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');}}
/>
Hello @FeMicheletti
I am trying to reproduce it now
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?
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