Created
June 9, 2017 01:08
-
-
Save ridgeO/a55d4854bf3ec84a99535f06535a15ca to your computer and use it in GitHub Desktop.
Code snippets from ReactNativeFirebase application as featured in http://platypus.is/posts/5
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
# firebaseConfig.js | |
... | |
import * as firebase from 'firebase'; | |
... |
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
# index.ios.js and/or index.android.js | |
... | |
import firebaseApp from './firebaseConfig.js'; | |
... |
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
# firebaseConfig.js | |
... | |
// 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); | |
export default firebaseApp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment