Skip to content

Add red asterisk to TextInput required field #2591

Answered by raajnadar
meliodev asked this question in Q&A
Discussion options

You must be logged in to vote

NEW UPDATE -

There is a new way to do it from paper 4.11.0 - #2991

We can use custom react element for the text input component. Thanks to @smbadiwe

FOR OLD VERSIONS -

 <TextInput
      label="Email *"
      value={text}
      onChangeText={text => setText(text)}
 />

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
2 replies
@irshadpalayadan
Comment options

@raajnadar
Comment options

Answer selected by raajnadar
Comment options

You must be logged in to vote
5 replies
@raajnadar
Comment options

@smbadiwe
Comment options

@raajnadar
Comment options

@smbadiwe
Comment options

@raajnadar
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #2590 on March 08, 2021 09:52.