Describe the bug
_React Native_
From version 4.10.0 to latest version (now 5.0.0) after form submit is returned object with value:
{ text: { value: 'lorem ipsum' } }
. Before 4.10.0 after submit returns { text: 'lorem ipsum' }
Additionaly on Expo on "Web" tab after type just one letter we have [object Object]
To Reproduce
Steps to reproduce the behavior:
Expo links
Expected behavior
Return { text: 'lorem ipsum' }
instead { text: { value: 'lorem ipsum' } }
hey from version 5, you can make onChange
return simpler. I did make a mistake on the last v4, which was introduced this breaking change. I apologize for that.
const onChange = args => args[0].nativeEvent.text;
@bluebill1049
thanks for quick response, after change to const onChange = args => args[0].nativeEvent.text
works now :)
it was a bug which I introduced on the initial version, and I thought i fixed it on the latest V4, then I realize it's a broken change this morning...
Most helpful comment
hey from version 5, you can make
onChange
return simpler. I did make a mistake on the last v4, which was introduced this breaking change. I apologize for that.const onChange = args => args[0].nativeEvent.text;