I’m trying to preload some JSON files before the app starts, but I keep getting this error:
[Unhandled Promise rejection: TypeError: undefined is not an object (evaluating 'meta.moduleId = moduleId')]
My code is as follows:
await Asset.loadAsync([ require('./assets/i18n/en-gb.json'), require('./assets/i18n/da.json'), require('./assets/i18n/de.json'), ])
Could it be that JSON files are not allowed?
Thanks in advance.