Skip to content

Instantly share code, notes, and snippets.

@viceversus
Created September 16, 2016 20:58
Show Gist options
  • Save viceversus/168f9774b825c6bc56df79dd032b251f to your computer and use it in GitHub Desktop.
Save viceversus/168f9774b825c6bc56df79dd032b251f to your computer and use it in GitHub Desktop.
RNConfig
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