-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
33 lines (30 loc) · 1.04 KB
/
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
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import AppNavigator from './src/navigations/Navigator';
import * as Font from 'expo-font';
import { AppLoading } from 'expo';
//import AppLoading from 'expo-app-loading';
import * as Sentry from 'sentry-expo';
Sentry.init({
dsn:
'https://02bea15d1e064d8480a5e8370c150700@o496016.ingest.sentry.io/5569696',
enableInExpoDevelopment: true,
debug: true, // Sentry will try to print out useful debugging information if something goes wrong with sending an event. Set this to `false` in production.
});
export default class App extends React.Component {
state = {
isFontLoaded: false,
// isLoggedIn: false,
};
async componentDidMount() {
await Font.loadAsync({
RobotoBold: require('./src/fonts/Roboto-Bold.ttf'),
RobotoRegular: require('./src/fonts/Roboto-Regular.ttf'),
});
this.setState({ isFontLoaded: true });
}
render() {
return this.state.isFontLoaded === true ? <AppNavigator /> : <AppLoading />;
}
}