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

Code Example 1

FF D8 FF E0 00 10 4A 46 49 46 00 01

Learn ReactJs, React Native from akashmittal.com