Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onChoicePress don't work #14

Open
FeMicheletti opened this issue May 18, 2024 · 3 comments
Open

onChoicePress don't work #14

FeMicheletti opened this issue May 18, 2024 · 3 comments
Assignees

Comments

@FeMicheletti
Copy link

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 WrathChaos self-assigned this May 20, 2024
@WrathChaos
Copy link
Owner

Hello @FeMicheletti

I am trying to reproduce it now

@FeMicheletti
Copy link
Author

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants