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

Code Example 1

<link rel="icon" type="image/png" href="logo.png" />

Code Example 2

<link rel="icon" href="yourIcon.png" type="image/png">

Learn ReactJs, React Native from akashmittal.com