-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
39 lines (35 loc) · 1014 Bytes
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React from 'react';
import { StyleSheet, View } from 'react-native';
import firebase from 'firebase';
import SignUpForm from './components/SignUpForm';
import SignInForm from './components/SignInForm';
export default class App extends React.Component {
componentDidMount () {
// Initialize Firebase
const config = {
apiKey: "AIzaSyBCOHuRiRn3pbcUtz7s4z5UyYvV33Xwy3s",
authDomain: "one-time-password-dd26a.firebaseapp.com",
databaseURL: "https://one-time-password-dd26a.firebaseio.com",
projectId: "one-time-password-dd26a",
storageBucket: "one-time-password-dd26a.appspot.com",
messagingSenderId: "116792616322"
};
firebase.initializeApp(config);
}
render () {
return (
<View style={styles.container}>
<SignUpForm/>
<SignInForm/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'space-around',
},
});