Check out example codes for "css how to style a div". It will help you in understanding the concepts better.

Code Example 1

/*
<div class="#">
	<p>Hello World</p>
</div>
*/
/*put a dot in front of the name from your class*/
.#{
	display: block;
  	margin: auto;
  	width: 50%;
}

Learn ReactJs, React Native from akashmittal.com