-
I have a custom input component built with ui-kitten react-native. Custom input component
To use this component i wrap it with Controller
The default value is shown as expected. but the value is not recognize. When i click a button that run handleSubmit, the value is still empty and required rule fired. I tried to forwardRef but doesn't do anything. passing the ref from props also do nothing. passing the default value to defaultValue props of the controller or TextInput doesn't work either. Do i miss something? LOG errors : {"message": "Name is required, "ref": {"focus": [Function focus], "reportValidity": [Function reportValidity], "setCustomValidity": [Function setCustomValidity]}, "type": "required"} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I can't tell for sure having only plain text code in front of me. Please, take a look at this Snack and, if possible, tweak the example to better match your use-case. I couldn't reproduce the issue |
Beta Was this translation helpful? Give feedback.
I can't tell for sure having only plain text code in front of me.
Please, take a look at this Snack and, if possible, tweak the example to better match your use-case. I couldn't reproduce the issue