Check out example codes for "svg img tag not showing". It will help you in understanding the concepts better.

Code Example 1

in the svg file change

xlink:href="data:img/png;base64,

to

xlink:href="data:image/png;base64,

Learn ReactJs, React Native from akashmittal.com