在React Native TextInput上禁用粘贴

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

关于这一点的文档中没有任何内容。我想在React Native中单击TextInput时禁用下面的小弹出窗口。

enter image description here

有任何想法吗 ?

react-native textinput
1个回答
0
投票
<TextInput
   contextMenuHidden={true}
   value={this.state.text}
   onChangeText={(text) => this.setState({ text})}
/>
© www.soinside.com 2019 - 2024. All rights reserved.