11

I am using React Native and I would like to remove the cursor from text input.

How can I remove the cursor either using JavaScript or Android Functionality ?

2 Answers 2

36

Try:

<TextInput caretHidden={true} ... />

See: https://facebook.github.io/react-native/docs/textinput#carethidden

Sign up to request clarification or add additional context in comments.

Comments

0

Add caretHidden to the TextInput :

<TextInput caretHidden ... />

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.