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

Pass value, not object, to onPress in updateIsActiveIndex #120

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stdavis
Copy link

@stdavis stdavis commented Mar 29, 2019

This caused issues in my onPress handlers that were expecting the value of the button, not the button object.

This caused issues in my `onPress` handlers that were expecting the value of the button, not the button object.
@victorwvieira
Copy link

Until this merge done I'm doing using typeof

        if (typeof form.data === 'object') {
            setForm({
                ...form,
                data: form.data.value
            })
        }

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

Successfully merging this pull request may close these issues.

2 participants