Last active
January 20, 2018 21:29
-
-
Save coolnalu/86c564ecf9f6c1940298b09efb1008c9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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