Check out example codes for "css changer la couleur de la sélection". It will help you in understanding the concepts better.

Code Example 1

::selection{
  background-color: #444;
  color: white;
}

/* Firefox */
::-moz-selection {
  background-color: #444;
  color: white;
}

Learn ReactJs, React Native from akashmittal.com