Giter Site home page Giter Site logo

Comments (12)

dwilt avatar dwilt commented on June 22, 2024 5

@Snorlock put together a video showing everything I did: https://www.youtube.com/watch?v=VtrumM39wEg

from react-native-config.

vongohren avatar vongohren commented on June 22, 2024 2

I ended up creating my own: https://bitbucket.org/enturas/react-native-config-swift

from react-native-config.

vongohren avatar vongohren commented on June 22, 2024 1

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.

vongohren avatar vongohren commented on June 22, 2024

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.

dwilt avatar dwilt commented on June 22, 2024

No problem. What do you mean - the default file?

from react-native-config.

vongohren avatar vongohren commented on June 22, 2024

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.

vongohren avatar vongohren commented on June 22, 2024

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.

coreyar avatar coreyar commented on June 22, 2024

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.

coreyar avatar coreyar commented on June 22, 2024

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.

hiaw avatar hiaw commented on June 22, 2024

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.

vongohren avatar vongohren commented on June 22, 2024

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.

vongohren avatar vongohren commented on June 22, 2024

Closing now because solutions have been made

from react-native-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.