如何在React native中的WebView中隐藏键盘工具栏(InputAccessoryView)? (iOS)

问题描述 投票:0回答:1

我在响应本机中使用WebView,当单击输入并打开键盘时,我使用键盘工具栏(InputAccessoryView)我如何隐藏这条线?或对此部分进行控制,例如更改“完成”文本?

webview keyboard open

react-native keyboard react-native-ios inputaccessoryview react-native-webview
1个回答
0
投票

刚刚提到了react-native-webview中的问题,发现了一个名为hideKeyboardAccessoryView的仅ios道具可以解决此问题。以下链接是我查找它的方法和源代码参考。此功能可用版本2.3.0或更高版本

https://github.com/react-native-community/react-native-webview/issues/38

https://github.com/react-native-community/react-native-webview/pull/67

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.