Comments (12)
@Snorlock put together a video showing everything I did: https://www.youtube.com/watch?v=VtrumM39wEg
from react-native-config.
I ended up creating my own: https://bitbucket.org/enturas/react-native-config-swift
from react-native-config.
Ok, I think that iv figuerd out what is the problem. We are running cocoapods and this creates problems for npm link and usage. The file is generated and all through the build and the ruby script, but I guess it's not included proparly. @pedro do you have any input on this?
from react-native-config.
Thats fucking amazing that you made this video! Thanks dude! I looked through it and I have done it all except for the schemas. I tried to just get it running with the default file .env. But as mentioned it's still empty. Did you ever try the default file? I will look at this more closely on monday, and see how introducing schemas works for me. Im currently off work for the weekend.
from react-native-config.
No problem. What do you mean - the default file?
from react-native-config.
He writes that if you just use a .env file. Then that will be a default file of the whole setup. Then you dont need schemase and stuff. Its in the README
from react-native-config.
The weird thing is that I do all these things, firstly iv just used the "main" schema and trying just to get my .env.staging file in and through to the web. Iv verified that the ruby script actually picks up the file and converts to key values and creates the genereatedConfig Object-C class with the right values and everything, but I stille cant get it out to the web for some reason. Works fine on android.
from react-native-config.
I also ran into a similar issue with version 0.3.0. I had another project using 0.1.0 that I know works and was able to solve this issue by downgrading versions. I have not investigated why the problem occurs yet.
from react-native-config.
Solved the issue. Problem was caused by spaces in my .env file. Works on 0.3.0 when I correct the spacing.
from react-native-config.
Anyway we can merge the Swift version back in here? Cause I'm using Swift to write my bridge and not sure how to use RN Config.
from react-native-config.
Think you can use the one on bitbucket pretty straight out.
But we ended up writing ourselves from swift to C# because it was tooo many problems with updating when having swift in the bottom
from react-native-config.
Closing now because solutions have been made
from react-native-config.
Related Issues (20)
- Multiple commands produce 'node_modules/react-native-config/ios/ReactNativeConfig/GeneratedDotEnv.m' HOT 7
- it is working react native 0.72.0 ? HOT 15
- How to modify the content of ".env file" by command in "scripts" of "package.json". HOT 1
- Change env value programatically (with persistence) HOT 3
- The app is always running in release mode after the RN upgrade from 0.71.7 to 0.72.3 HOT 2
- SigningConfig "releaseStaging" is missing required property "storePassword" when using gradlew to build HOT 1
- Release build unable to access .env file on android HOT 16
- Reference variables
- Missing .env in Github CI/CD in Android HOT 3
- Changes only propagate if I remove derived data HOT 11
- output.versionCodeOverride is not getting override when version code is coming from .env
- Config is empty after upgrade to RN 0.71 HOT 31
- "/tmp/envfile" is buggy when its contents are empty string (iOS)
- Cannot invoke method toInteger() on null object HOT 2
- Inconsistent Environment File Loading in Android Studio vs React Native CLI
- ERROR in ./src/CONFIG.ts 3:0-41 [web-server] Module not found: Error: Can't resolve 'react-native-config' in '/Volumes/Personal/code-work/rn-projects/zaions/expensify-app-fork/src'
- is it possible to pass params but not set ENVFILE when run assemble release HOT 1
- How to import NSExceptionDomains as an environment variable?
- Variable are UNDEFINED on IOS HOT 14
- Could not find method android() for arguments [dotenv_4bgzrl46y7i0xnvnmgzr6qa4c$_run_closure1@3fa75e8b] on project ':app' of type org.gradle.api.Project.
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 react-native-config.