Comments (4)
Hey @peterpme I was trying to use it as well, and the problem I'm having is that I can't find a way to retrieve those values from the config
section...
I tried to use something like:
Expo.Constants.manifest.config.apiBaseUrl
but it didn't worked 🤔
What am I doing wrong here?
Thanks in advance!
from exp-deploy-cli.
Hey @macrozone and @eliasturbay,
Sorry I'm not sure why notifications aren't coming to my email!
Here's what I do:
{
"config": {
apiUrl: "google.com/api",
sentryApiKey: "xyz"
},
"expo": {
name: "my-app-name",
slug: "my-app-slug"
}
}
Expo won't read your variables via Expo.Constants.manifest.config
. You have to import the json file on your own:
import App from 'app.json'
const API_URL = App.config.apiUrl
Does that make sense?
I will update the readme with this insight
from exp-deploy-cli.
I added this to the README. If you both have better suggestions please let me know!
from exp-deploy-cli.
Thank you very much Peter! That makes sense to me 🙂
from exp-deploy-cli.
Related Issues (12)
- Save release history
- can't install on node 6 HOT 1
- Questions
- exp-deploy releases command
- exp-deploy rollback command
- Tag every new `exp-deploy`
- exp-deploy sync command
- write tests
- Use node spawn to output results of exp publish instead of spawnAsync
- exp-deploy config:set / config:get command
- expo-deploy command issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exp-deploy-cli.