-
Hey guys! Is there any way to add asterisk with red color to textInput label (placeholder) to show required field ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
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 -
|
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
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 -