forked from hamadJamal/Software-Engineering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
34 lines (27 loc) · 857 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
import firebase from "firebase";
var postRef = firebase.database().ref('posts')
import {StatusBar} from 'expo-status-bar';
import React from 'react';
import {styleSheet, Text, View} from 'react-native';
import AppNavigator from './src/navigations/Navigator.js';
import * as Font from 'expo-font';
import {AppLoading} from 'expo';
export default class App extends React.Component{
state = {
isFontLoaded : false
}
async componentDidMount(){
await Font.loadAsync({
'Poppins' : require('./src/fonts/Poppins-Black.ttf'),
'RobotoRegular' : require('./src/fonts/Roboto-Regular.ttf'),
'PoppinsBold' : require('./src/fonts/Poppins-Bold.ttf'),
'PoppinsMedium' : require('./src/fonts/Poppins-Medium.ttf'),
});
this.setState({isFontLoaded:true})
}
render(){
return(
(<AppNavigator/>)
);
}
};