I want to disable clipboard(copy/paste) in my react-native app
contextMenuHidden={true} didn't work for me.
I want to disable clipboard(copy/paste) in my react-native app
contextMenuHidden={true} didn't work for me.
 
    
    Attaching below snippet that worked for me
removeClippedSubviews={true} contextMenuHidden={true} onFocus={() => Clipboard.setString('')} onSelectionChange={() => Clipboard.setString('')}
<View removeClippedSubviews={true}>
                            <TextInput
                              contextMenuHidden={true}
                                onFocus={() => Clipboard.setString('')} 
                                onSelectionChange={() => Clipboard.setString('')}
                                style={styles.searchInput}
                                onChangeText={this.handleSearch}
                                value={search} />
                              </View>
 
    
    Clipboard use mostly in TextInput fields. you can refer to this post for disabling the clipboard for TextInput 
Disable clipboard for TextInput in react native
