Check out example codes for "css line-clamp". It will help you in understanding the concepts better.

Code Example 1

.line-clamp{
  	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-overflow: ellipsis;
  	overflow: hidden;
}

Learn ReactJs, React Native from akashmittal.com