Skip to content

Commit 4a8f420

Browse files
committed
Clases de la 1 a la 3
0 parents  commit 4a8f420

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+46627
-0
lines changed

.gitignore

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
11+
# Native
12+
*.orig.*
13+
*.jks
14+
*.p8
15+
*.p12
16+
*.key
17+
*.mobileprovision
18+
19+
# Metro
20+
.metro-health-check*
21+
22+
# debug
23+
npm-debug.*
24+
yarn-debug.*
25+
yarn-error.*
26+
27+
# macOS
28+
.DS_Store
29+
*.pem
30+
31+
# local env files
32+
.env*.local
33+
34+
# typescript
35+
*.tsbuildinfo

CoreComponent/.gitignore

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
11+
# Native
12+
*.orig.*
13+
*.jks
14+
*.p8
15+
*.p12
16+
*.key
17+
*.mobileprovision
18+
19+
# Metro
20+
.metro-health-check*
21+
22+
# debug
23+
npm-debug.*
24+
yarn-debug.*
25+
yarn-error.*
26+
27+
# macOS
28+
.DS_Store
29+
*.pem
30+
31+
# local env files
32+
.env*.local
33+
34+
# typescript
35+
*.tsbuildinfo

CoreComponent/App copy.js

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
//import { StatusBar } from 'expo-status-bar';
2+
import { View, Text, SafeAreaView, StyleSheet } from 'react-native';
3+
4+
5+
6+
export default function App() {
7+
8+
return (
9+
<SafeAreaView>
10+
<View style={[{backgroundColor: 'teal'}, styles.container]}>
11+
<Text>Hola desde React Native</Text>
12+
</View>
13+
</SafeAreaView>
14+
);
15+
};
16+
17+
const styles = StyleSheet.create({
18+
container: {
19+
backgroundColor: 'rgba(255, 0, 0, 0.3)',
20+
//padding: 10,
21+
/*
22+
paddingTop: 10,
23+
paddingLeft: 10,
24+
paddingRight: 10,
25+
marginTop: 20,
26+
marginBottom: 20
27+
*/
28+
//paddingHorizontal: 10,
29+
//paddingVertical: 20,
30+
//alignItems: 'center'
31+
//flex: 1,
32+
//justifyContent: 'center'
33+
}
34+
})

CoreComponent/App.js

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
//import { StatusBar } from 'expo-status-bar';
2+
import { Text, StyleSheet, View, SafeAreaView } from 'react-native';
3+
4+
5+
6+
export default function App() {
7+
8+
return (
9+
<View style={styles.container}>
10+
<Text style={styles.heading}>Cuadros de colores</Text>
11+
12+
{/* <View style={styles.cyanBox}>
13+
<Text style={styles.text}>Cyan #2aa198</Text>
14+
</View>
15+
<View style={styles.blueBox}>
16+
<Text style={styles.text}>Blue #2aa198</Text>
17+
</View>
18+
<View style={styles.cyanBox}>
19+
<Text style={styles.text}>Cyan #2aa198</Text>
20+
</View>
21+
*/}
22+
<View style={[styles.box, styles.cyan]}>
23+
<Text style={styles.text}>Cyan #2aa198</Text>
24+
</View>
25+
<View style={[styles.box, styles.blue]}>
26+
<Text style={styles.text}>Cyan #2aa198</Text>
27+
</View>
28+
</View>
29+
);
30+
};
31+
32+
const styles = StyleSheet.create({
33+
container: {
34+
paddingTop: 50,
35+
paddingHorizontal: 10,
36+
},
37+
heading: {
38+
fontSize: 18,
39+
fontWeight: "bold",
40+
marginBottom: 10,
41+
},
42+
text: {
43+
fontWeight: "bold",
44+
color: "white",
45+
},
46+
cyanBox: {
47+
padding: 10,
48+
borderRadius: 5,
49+
justifyContent: "center",
50+
alignItems: "center",
51+
marginBottom: 10,
52+
backgroundColor: "#2aa198",
53+
},
54+
blueBox: {
55+
padding: 10,
56+
borderRadius: 5,
57+
justifyContent: "center",
58+
alignItems: "center",
59+
marginBottom: 10,
60+
backgroundColor: "#268bd2",
61+
},
62+
box: {
63+
padding: 10,
64+
borderRadius: 5,
65+
justifyContent: "center",
66+
alignItems: "center",
67+
marginBottom: 10,
68+
},
69+
cyan: {
70+
backgroundColor: "#2aa198",
71+
},
72+
blue: {
73+
backgroundColor: "#268bd2",
74+
},
75+
});

CoreComponent/app.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"expo": {
3+
"name": "CoreComponent",
4+
"slug": "CoreComponent",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"userInterfaceStyle": "light",
9+
"splash": {
10+
"image": "./assets/splash.png",
11+
"resizeMode": "contain",
12+
"backgroundColor": "#ffffff"
13+
},
14+
"ios": {
15+
"supportsTablet": true
16+
},
17+
"android": {
18+
"adaptiveIcon": {
19+
"foregroundImage": "./assets/adaptive-icon.png",
20+
"backgroundColor": "#ffffff"
21+
}
22+
},
23+
"web": {
24+
"favicon": "./assets/favicon.png"
25+
}
26+
}
27+
}
17.1 KB
Loading

CoreComponent/assets/favicon.png

1.43 KB
Loading

CoreComponent/assets/icon.png

21.9 KB
Loading

CoreComponent/assets/splash.png

46.2 KB
Loading

CoreComponent/babel.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = function(api) {
2+
api.cache(true);
3+
return {
4+
presets: ['babel-preset-expo'],
5+
};
6+
};

0 commit comments

Comments
 (0)