react-native-dotenv
react-native-dotenv copied to clipboard
Import *
I want to import ALL of available variables by using
import * as environments from "react-native-dotenv"
But it return an error
cannot read property "name" of undefined
@andreechristian did you manage to resolve this?
No solution for this?
This is a babel module; I would assume that in some part of its code it actually replaces variable.name (which is undefined in this case) with the corresponding value during the build process. Hence the * syntax can not be supported.
Note: I have not analyzed the source code, I'm just guessing based on my knowledge on how this package works