Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Shubhamrathore3196 opened this issue Mar 28, 2023 · 0 comments

Comments

@Shubhamrathore3196
Copy link

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant