Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting API_ROOT #199

Open
matejstrasek opened this issue May 11, 2017 · 1 comment
Open

Setting API_ROOT #199

matejstrasek opened this issue May 11, 2017 · 1 comment

Comments

@matejstrasek
Copy link

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?

@fabriziomoscon
Copy link
Contributor

fabriziomoscon commented Jun 5, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants