Disable Options on React-Native Text Input

firebolt_ash picture firebolt_ash · Mar 19, 2017 · Viewed 48.7k times · Source

I am using TextInput for a project and wanted to DISABLE any kind of text selection or actions like (cut/copy/paste/share) as shared in the screenshot below.

I am not able find anything in the react-native official documentation

enter image description here

Answer

Artem Tutov picture Artem Tutov · Mar 19, 2017

You should add 2 attributes selectTextOnFocus and editable

For example:

<TextInput editable={false} selectTextOnFocus={false} />