I'd like to read and parse a static yaml resource file (let's starts from there) within my React Native source code, I tried require('path/to/file.yaml') to no avail.
I also tried with npm's libraries such as read-yaml or yaml-loader all of which cannot get the yaml content properly.
It is a breeze with json file, I can just `require('path/to/file.json') and immediately get everything in nice object format.
Is there a way to read yaml in react native? It is just another text file right with a different format right, so I don't think it will be that hard to read and parse the yaml file., but I am new to JavaScript and React-Native here coming from C/C++ background