Skip to content

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

Open
stdavis wants to merge 1 commit into
moschan:masterfrom
stdavis:patch-1
Open

Pass value, not object, to onPress in updateIsActiveIndex#120
stdavis wants to merge 1 commit into
moschan:masterfrom
stdavis:patch-1

Conversation

@stdavis

@stdavis stdavis commented Mar 29, 2019

Copy link
Copy Markdown

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
Copy Markdown

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