Check out example codes for "how to change tab icon in html". It will help you in understanding the concepts better.

Code Example 1

<link rel="shortcut icon" href="http://sstatic.net/stackoverflow/img/favicon.ico">

Learn ReactJs, React Native from akashmittal.com