Skip to content

Commit 3ad6870

Browse files
committed
fix: ajuste no projeto
1 parent d77e909 commit 3ad6870

File tree

11 files changed

+14206
-0
lines changed

11 files changed

+14206
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
- https://snack.expo.dev/@thomasdacostaprof/aula_14_2_armazenamento_mmkv
5454
- https://snack.expo.dev/@thomasdacostaprof/aula_15_promise_fecth
5555
- https://snack.expo.dev/@thomasdacostaprof/aula_16_webview
56+
- https://snack.expo.dev/@thomasdacostaprof/aula_18_reactnativeelements
5657

5758
## Objetivo
5859

Lines changed: 35 additions & 0 deletions
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

aula_18_reactnativeelements/App.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import {StyleSheet, Text, View} from 'react-native';
2+
import {Text as TextElement} from '@rneui/themed';
3+
import {Input, Icon} from '@rneui/themed';
4+
import {Button} from '@rneui/themed';
5+
6+
export default function App() {
7+
return (
8+
<View style={styles.container}>
9+
<Text>Utilizando os elementos do React Native Elements</Text>
10+
<TextElement h1>Login</TextElement>
11+
<Input
12+
placeholder='Digite seu e-mail'
13+
leftIcon={{type: 'font-awesome', name: 'envelope'}}
14+
/>
15+
<Input
16+
placeholder='Digite a sua senha'
17+
leftIcon={{type: 'font-awesome', name: 'key'}}
18+
secureTextEntry={true}
19+
/>
20+
<View style={styles.buttonContainer}>
21+
<Button onPress={()=>alert("Login efetuado com sucesso")}>
22+
LOGIN
23+
<Icon name="sign-in" type="font-awesome" color="#fff" />
24+
</Button>
25+
</View>
26+
</View>
27+
);
28+
}
29+
30+
const styles = StyleSheet.create({
31+
container: {
32+
flex: 1,
33+
backgroundColor: '#fff',
34+
alignItems: 'center',
35+
justifyContent: 'center',
36+
},
37+
buttonContainer: {
38+
flexDirection: 'row',
39+
justifyContent: 'center',
40+
width: '100%'
41+
},
42+
});
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"expo": {
3+
"name": "aula_18_reactnativeelements",
4+
"slug": "aula_18_reactnativeelements",
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+
"assetBundlePatterns": [
15+
"**/*"
16+
],
17+
"ios": {
18+
"supportsTablet": true
19+
},
20+
"android": {
21+
"adaptiveIcon": {
22+
"foregroundImage": "./assets/adaptive-icon.png",
23+
"backgroundColor": "#ffffff"
24+
}
25+
},
26+
"web": {
27+
"favicon": "./assets/favicon.png"
28+
}
29+
}
30+
}
17.1 KB
Loading
1.43 KB
Loading
21.9 KB
Loading
46.2 KB
Loading
Lines changed: 6 additions & 0 deletions
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)