Check out example codes for "error message pushes button down". It will help you in understanding the concepts better.

Code Example 1

div.form-group{
  margin-bottom:35px
}

div.has-error{
 height:0px 
}

Learn ReactJs, React Native from akashmittal.com