futurice/pepperoni-app-kit

Setting API_ROOT

matejstrasek opened this issue · 1 comments

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