DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

DEV Community ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป is a community of 968,873 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Muhammad Hanif
Muhammad Hanif

Posted on

React Native JS Only Environment Variable Library

Hi guys, So a few days ago I read post here about Environment Variable in React Native, the Author made me realize that an Envfile should be build/compile time only.
so I just created a library for React Native JS-only Environment variable. checkit out
https://github.com/hanipcode/rnenv

My goals

  • can be installed as dev dependency
  • JS only, no need native modules (you can use react-native-config for that)
  • suport multiple environment
  • select environment as command for example rnenv ENV=production npm run build:android

sorry for my bad english though.

Top comments (1)

Collapse
 
pinturic profile image
pinturic

Nice and easy to use solution!

This post blew up on DEV in 2020:

js visualized

๐Ÿš€โš™๏ธ JavaScript Visualized: the JavaScript Engine

As JavaScript devs, we usually don't have to deal with compilers ourselves. However, it's definitely good to know the basics of the JavaScript engine and see how it handles our human-friendly JS code, and turns it into something machines understand! ๐Ÿฅณ

Happy coding!