Dismissing on screen keyboard for TextEditor via return on iOS

Hi, having trouble getting rid of the on screen keyboard when pressing return - it disappears ok when I change focus, but not on enter. I’ve tried changing some of the settings but nothing seems to work?

Also, anyone know where all the code lives for making the keyboard appear/disappear as I’d like to better understand what is going on.

thx

After looking into label and setting readonly to off, it seems this is more appropriate for simple editing operations of a single line. it even has callbacks for when the on screen keyboard is going to be shown/removed - also doesn’t seem to have the same issue with the return key (i’m guessing due to extra processing in the Label class).

Maybe texteditor is designed for more heavyweight editing operations?