Check out example codes for "how to margin placeholdr text". It will help you in understanding the concepts better.

Code Example 1

input[type="text"]::placeholder {  
                  
                /* Firefox, Chrome, Opera */ 
                padding-left: 10px; 
            } 
/*Must include type="text" in HTML*/

Learn ReactJs, React Native from akashmittal.com