Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 19, 2025. It is now read-only.
This repository was archived by the owner on Mar 19, 2025. It is now read-only.

React Native 0.68.2: contextMenuHidden does not hide menu on Android on double tap - Disable Options(cut/copy/paste) on React-Native Text Input  #290

@Shubhamrathore3196

Description

@Shubhamrathore3196

I'm using react-native ( v0.68.2)] using prop to TextInput called contextMenuHidden.
When I add this prop to a TextInput component it seems to disable copy and paste :
a) on long press : for both Android / IOS

but unfortunately on
b) double tap : the context menu options ( cut/copy / paste ) are visible for Android .

Code :

                <TextInput
                  onSelectionChange={this.handleSelectionChange}
                  editable={true}
                  contextMenuHidden={true}
                  selectTextOnFocus={false}
                  selection={this.state.selection}
                  caretHidden={true}..../>

Please find a feasible solution for this .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions