pepperoni-app-kit icon indicating copy to clipboard operation
pepperoni-app-kit copied to clipboard

Setting API_ROOT

Open matejstrasek opened this issue 7 years ago • 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?

matejstrasek avatar May 11 '17 13:05 matejstrasek

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

fabriziomoscon avatar Jun 05 '17 13:06 fabriziomoscon