Created
September 16, 2016 20:58
-
-
Save viceversus/168f9774b825c6bc56df79dd032b251f to your computer and use it in GitHub Desktop.
RNConfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RNConfig extends ReactContextBaseJavaModule { | |
public RNConfig(ReactApplicationContext reactApplicationContext) { | |
super(reactApplicationContext); | |
} | |
@Override | |
public String getName() { | |
return "RNConfig"; | |
} | |
@Nullable | |
@Override | |
public Map<String, Object> getConstants() { | |
final Map<String, Object> constants = new HashMap<>(); | |
constants.put("buildEnvironment", BuildConfig.BUILD_ENV); | |
return constants; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment