pepperoni-app-kit
pepperoni-app-kit copied to clipboard
Setting API_ROOT
Using get from api.js already implemented in the repository and having issues where to set API_ROOT.
Error: Undefined configuration key: API_ROOT at getConfiguration
How should I properly do that?
My app uses a slightly different version of what is now in master. I use react-native-config
for configurations, but I think you have to call this function as soon as the react-native part of the app loads:
https://github.com/futurice/pepperoni-app-kit/blob/master/src/utils/configuration.js#L5