How do I change the return key type of a text from a prompt in NativeScript?

戏子无情 提交于 2021-01-29 10:12:49

问题


Changing the return key type of TextViews/TextFields is pretty straight forward, however, since prompts don't use any html there's no obvious way to change the return key type. the NativeScript docs don't indicate there being any way to change it either.


回答1:


Unfortunately you can not do that. As of today {N} do not expose the underlaying native view for dialogs so it's not possible to override natively.

You will have to build the complete custom dialog yourself to achieve what you are looking for.



来源:https://stackoverflow.com/questions/59888508/how-do-i-change-the-return-key-type-of-a-text-from-a-prompt-in-nativescript

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!