Check out example codes for "guid string to binary better". It will help you in understanding the concepts better.

Code Example 1

INSERT INTO sometable (UUID) VALUES
       (UNHEX(REPLACE("3f06af63-a93c-11e4-9797-00505690773f", "-","")))

Learn ReactJs, React Native from akashmittal.com