Folks,
I am looking through a Firebase blog post.
One of the items that I noticed is that they recommend (implicitly, at least) to hardcode the API keys directly into the project:
// Initialize Firebase
const firebaseConfig = {
apiKey: "<your-api-key>",
authDomain: "<your-auth-domain>",
databaseURL: "<your-database-url>",
storageBucket: "<your-storage-bucket>",,
};
const firebaseApp = firebase.initializeApp(firebaseConfig);
I was wondering if there was any way to avoid having to hard-code the API keys. If I were to do this in my project, I wouldn't be able to share it on GitHub, for example. What's the equivalent, in React Native, of setting and then retrieving an environmental variable?