答案 0 :(得分:0)
<TextInput
contextMenuHidden={true}
value={this.state.text}
onChangeText={(text) => this.setState({ text})}
/>
答案 1 :(得分:0)
iOS 版
<TextInput contextMenuHidden={true}
安卓版
<View removeClippedSubviews={true}>
<TextInput contextMenuHidden={true} />
</View>
Surender Kumar 的回答: React Native 55.4: contextMenuHidden does not hide menu on Android - Disable Options on React-Native Text Input
答案 2 :(得分:0)
为了停止复制粘贴,下面的代码是
<TextInput contextMenuHidden={true}/>