Description
When requiring a JSON file on iOS the JSON object returned always contains two additional fields id and uri, where id if the filename and uri is the path relative to the Resources directory. This fields are enumerable, so when logging the file or doing Object.keys they are shown.
If these fields are defined in the file (either as exports or keys in the JSON) then they are also clobbered and the internal properties are set.
I imagine the code needs to be changed to be similar to the Android code where the object holds keys for exports, id, and uri and return only the exports value to the js code while keeping uri and id for internal usage
Steps to reproduce
Actual
id and uri values are not set to the expected values
Expected
id and uri values should not be overriden
No comments