我正在使用react-native-webview
图书馆的Reaction Native.我的代码如下所示:
<SafeAreaView style={backgroundStyle}>
<WebView
useWebKit={true}
scrollEnabled={false}
hideKeyboardAccessoryView={true}
keyboardDisplayRequiresUserAction={false}
nestedScrollEnabled={!useContainer}
style={[styles.webview, style]}
{...rest}
menuItems={[{ key: 'test0001', label: 'Bold Test' }]}
onCustomMenuSelection={(event) => {
console.log('hehehe');
}}
/>
</SafeAreaView>
它可以在iOS = 15上运行,但不能在iOS = 16上运行.我发现原因是UIMenuController已被弃用,我们应该使用UIEditMenuInteraction代替.
对我有什么建议或文档/链接吗?请帮帮我,非常感谢.
P/S:我试着编辑库的原生代码,但看起来Objective-C对我来说太陌生了:(