Skip to content

Commit b4426d7

Browse files
committed
Firebase setup
1 parent 733b14d commit b4426d7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

App.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
import React, { Component } from "react";
22
import { AppRegistry, View, Text } from "react-native";
33
import { Header } from "./src/components/common";
4+
import firebase from "firebase";
45

56
export default class App extends Component {
7+
componentWillMount() {
8+
const config = {
9+
apiKey: "AIzaSyB-7ErC1c7WAmNxm6ZTufAtJpK8HP57yi8",
10+
authDomain: "auth-react-native-accbe.firebaseapp.com",
11+
databaseURL: "https://auth-react-native-accbe.firebaseio.com",
12+
projectId: "auth-react-native-accbe",
13+
storageBucket: "auth-react-native-accbe.appspot.com",
14+
messagingSenderId: "876070193723"
15+
};
16+
firebase.initializeApp(config);
17+
}
18+
619
render() {
720
return (
821
<View>

0 commit comments

Comments
 (0)