TextInput onBlur callback as option?
See original GitHub issue- tcomb-form-native v0.4.0
- react-native v0.21.0
For the TextInput field type you list among other standard options onBlur, onEndEditing, onFocus and onSubmitEditing. Can you give an example of how a callback would be indicated for these options?
var options = {
fields: {
textField: {
onFocus: [ How do I code the callback here? ]
}
}
};
I find this library to be immensely helpful. Thanks for all of your work!
Issue Analytics
- State:
- Created 8 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Difference between onEndEditing and onBlur? - Stack Overflow
Callback that is called when the text input is blurred. Is there a scenario where it can't be solved just with onBlur ,...
Read more >TextInput - React Native
Use it with multiline set to true to be able to fill the lines. Type. number. onBlur . Callback that is called when...
Read more >TextInput · React Native
Two methods exposed via the native element are .focus() and .blur() that will focus or blur the TextInput programmatically.
Read more >react-hook-form controlled input onblur doesn't work - You.com
In your code, the form mode is onBlur . it means the validation is triggered on blur event (unfocus the input). When you...
Read more >onblur Event - W3Schools
The onblur event occurs when an element loses focus. The onblur event is often used on input fields. The onblur event is often...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Basically, you can do this @flyingace
Is there any way to scroll the focussed text component to the top of the page? I believe this should be a natural next step for most forms.
Something like this?