我正在尝试将羽毛笔编辑器集成到我的本机应用程序中。我在用react-native-webview-quilljs软件包。
https://github.com/reggie3/react-native-webview-quilljs
<WebViewQuillJS
defaultContent="sdfsd"
backgroundColor={"#FAEBD7"}
/>
我面临的问题是,当我单击编辑器进行键入时,编辑器正在放大。这种现象使编辑器的某些部分从屏幕右侧移出,必须滚动。此行为仅在iOS平台上可见,而在Android中不可见。
我发现周围的工作可能不是一个好方法。在下面给出的路径的index.html中,我更改了meta标签
node_modules > react-native-webview-quilljs > assets > index.html
来自此
<meta name="viewport" content="width=device-width,initial-scale=1"/>
to
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0">
如果有其他解决方案,欢迎使用