react-native-simple-radio-button icon indicating copy to clipboard operation
react-native-simple-radio-button copied to clipboard

Pass value, not object, to onPress in updateIsActiveIndex

Open stdavis opened this issue 5 years ago • 1 comments

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

stdavis avatar Mar 29 '19 14:03 stdavis

Until this merge done I'm doing using typeof

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

victorwvieira avatar Jun 01 '20 06:06 victorwvieira