-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
106 lines (83 loc) · 2.49 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import React, {Component} from 'react';
import {Platform, StatusBar, StyleSheet, SafeAreaView, View} from 'react-native';
import {createStackNavigator} from 'react-navigation-stack';
import {createAppContainer, createSwitchNavigator} from 'react-navigation';
// import { Font } from 'expo';
import * as Font from 'expo-font';
import { Ionicons } from '@expo/vector-icons';
import DayScreen from './src/screens/DayScreen';
import ExerciseScreen from './src/screens/ExerciseScreen';
import DayCompleteScreen from './src/screens/DayCompleteScreen'
import ReportScreen from './src/screens/ReportScreen'
import * as myLanguage from './src/translations';
console.disableYellowBox = true;
const AppNavigator = createStackNavigator({
DayScreen: {
screen: DayScreen,
navigationOptions: () => ({
headerBackTitle: null,
headerShown: false,
}),
},
ExerciseScreen: {
screen: ExerciseScreen,
navigationOptions: () => ({
headerBackTitle: null,
headerShown: false,
}),
},
DayCompleteScreen: {
screen: DayCompleteScreen,
navigationOptions: () => ({
headerBackTitle: null,
headerShown: false,
}),
},
ReportScreen: {
screen: ReportScreen,
navigationOptions: () => ({
headerBackTitle: null,
headerShown: false,
}),
},
});
const HomeNavigation = createAppContainer(AppNavigator);
myLanguage.setI18nConfig();
export default class App extends React.Component {
state = {
fontLoaded: false
};
// myLanguage.setI18nConfig();
// async componentDidMount() {
// await Font.loadAsync({
// // Load a font `Montserrat` from a static resource
// Roboto_medium: require('./assets/fonts/Roboto_medium.ttf'),
// // Any string can be used as the fontFamily name. Here we use an object to provide more control
// // 'Roboto_medium': {
// // uri: require('./assets/fonts/Mont.ttf'),
// // fontDisplay: FontDisplay.FALLBACK,
// // },
// });
// }
componentDidMount() {
// StatusBar.setHidden(true);
if (Platform.OS === 'android'){
StatusBar.setTranslucent(true);
}
// Font.loadAsync({
// 'Roboto_medium': require('./assets/fonts/Roboto_medium.ttf'),
// });
}
render() {
// if (!this.state.fontLoaded) {
// return (
// <View></View>
// );
// }
// else {
// }
return (
<HomeNavigation />
);
}
}