|
Hey guys! Is there any way to add asterisk with red color to textInput label (placeholder) to show required field ? |
Answered by
raajnadar
Mar 29, 2021
Replies: 2 comments 7 replies
Answer selected by
raajnadar
|
The accepted answer is not really a solution. The requirement is to have a styled (colored) asterisk, not just an asterisk. The quickest solution is to update this codebase to change the In plain Javascript, the following example will work (you can try it by modifying this Expo example: But it will fail in typescript due to type-checking. |
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 -