I noticed when I ported the code, that react-hook-form in codesandbox.io is older than the latest version. In the latest version, there is a breaking change.
Before:
import { TextInput } from 'react-native'; <Controller as={<TextInput style={{ borderWidth: 2, borderColor: 'black'}} />} name="text" control={args => ({ value: args[0].nativeEvent.text, })} onChange={onChange} />
now:
import { TextInput } from 'react-native'; <Controller as={<TextInput style={{ borderWidth: 2, borderColor: 'black'}} />} name="text" control={args => args[0].nativeEvent.text} onChange={onChange} />
github.com/react-hook-form/react-h...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I noticed when I ported the code, that react-hook-form in codesandbox.io is older than the latest version. In the latest version, there is a breaking change.
Before:
now:
github.com/react-hook-form/react-h...