Skip to content

Instantly share code, notes, and snippets.

@coolnalu
Last active January 20, 2018 21:29
Show Gist options
  • Select an option

  • Save coolnalu/86c564ecf9f6c1940298b09efb1008c9 to your computer and use it in GitHub Desktop.

Select an option

Save coolnalu/86c564ecf9f6c1940298b09efb1008c9 to your computer and use it in GitHub Desktop.
import * as firebase from 'firebase';
const config = {
apiKey: 'api_secret',
authDomain: 'your-project.firebaseapp.com',
databaseURL: 'https://your-project.firebaseio.com',
projectId: 'your-project',
storageBucket: 'your-project.appspot.com',
messagingSenderId: '***'
};
const firebaseApp = firebase.initializeApp(config);
// https://github.com/facebook/react-native/issues/12981
console.ignoredYellowBox = ['Setting a timer'];
const api = {
firebase: firebaseApp,
getUser: () => firebaseApp.auth().currentUser,
getActiveItems: () => {
//...
}
};
export default api;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment