Check out example codes for "apply css on last child in parent div". It will help you in understanding the concepts better.

Code Example 1

li:last-child {
    background-color: lime;
}

Code Example 2

.parent > *:last-child {
  background-color: red;
}

Learn ReactJs, React Native from akashmittal.com