Check out example codes for "center ul". It will help you in understanding the concepts better.

Code Example 1

dropdwon-menu {
	left: 50%;
	transform: translateX(-50%);
}

Learn ReactJs, React Native from akashmittal.com