-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
47 lines (39 loc) · 1.1 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
import React, {Component} from 'react';
import { StyleSheet, Text, View } from 'react-native';
import Expo from 'expo';
import {Container, Header, Content, Right, Left } from 'native-base';
import { Col, Row, Grid } from "react-native-easy-grid";
import DynamicBackground from './src/components/DynamicBackground.js';
export default class App extends Component {
state = {fontLoaded:false}
async componentWillMount() {
//Namas para que no ande enfadando
await Expo.Font.loadAsync({
'Roboto': require('native-base/Fonts/Roboto.ttf'),
'Roboto_medium': require('native-base/Fonts/Roboto_medium.ttf'),
});
this.setState({fontLoaded:true})
}
render() {
if(this.state.fontLoaded){
return (
<Container>
<DynamicBackground>
<Row size={50}>
<Text> Aqui va el numero de carros actuales en grande </Text>
</Row>
<Row size={50}>
</Row>
</DynamicBackground>
</Container>
);
}
else{
return(
<View>
<Text>Font loading </Text>
</View>
);
}
}
}