I'm not sure if I do this the right way or not (I'd be interested to know) but I have a config.js file named:
providers/config.js
In there I export some constants e.g
export let URL_GOOGLE = "https://www.google.co.uk";
export let URL_BBC = "https://www.bbc.co.uk";
and then in any components I want to use them I do:
import {URL_GOOGLE} from '../providers/config';
and then just use that value in the component.
As I said, I have no idea is this is best practice or not?