-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
41 lines (37 loc) · 855 Bytes
/
App.js
File metadata and controls
41 lines (37 loc) · 855 Bytes
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
import React, {Component} from 'react';
import {View, StyleSheet} from 'react-native';
import {Title, Text} from 'react-native-paper'
import {Datos} from './components/Datos'
class App extends Component {
render() {
return (
<View style={styles.container}>
<Title style={styles.titulo}>Calculadora IMC</Title>
<View>
<Datos/>
</View>
<Text style={styles.pie}>Alejandro García Cuesta - Desarrollo de Interfaces (2º DAM)</Text>
</View>
)
}
};
const styles = StyleSheet.create({
container: {
flex: 1,
paddingHorizontal: 24,
backgroundColor: '#2b2d42',
},
titulo: {
color: 'white',
marginTop: 40,
textAlign: 'center',
fontSize: 30,
},
pie: {
color: 'white',
fontStyle: 'italic',
fontSize: 10,
margin: 10,
}
});
export default App;