Skip to content

Commit 3755b87

Browse files
committed
Projeto meals-app adicionado
1 parent 616fdac commit 3755b87

38 files changed

+14602
-0
lines changed

meals-app/.expo-shared/assets.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
3+
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
4+
}

meals-app/.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
node_modules/
2+
.expo/
3+
dist/
4+
npm-debug.*
5+
*.jks
6+
*.p8
7+
*.p12
8+
*.key
9+
*.mobileprovision
10+
*.orig.*
11+
web-build/
12+
13+
# macOS
14+
.DS_Store

meals-app/App.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import React, { useState } from "react";
2+
import { StyleSheet, Text, View } from "react-native";
3+
import * as Font from "expo-font";
4+
import AppLoading from "expo-app-loading";
5+
import { enableScreens } from "react-native-screens";
6+
import { createStore, combineReducers } from "redux";
7+
import { Provider } from "react-redux";
8+
9+
import MealsNavigator from "./navigation/MealsNavigator";
10+
import mealsReducer from "./store/reducers/mealsReducer";
11+
12+
enableScreens();
13+
14+
const rootReducer = combineReducers({
15+
meals: mealsReducer,
16+
});
17+
18+
const store = createStore(rootReducer);
19+
20+
const fetchFonts = () => {
21+
return Font.loadAsync({
22+
"open-sans": require("./assets/fonts/OpenSans-Regular.ttf"),
23+
"open-sans-bold": require("./assets/fonts/OpenSans-Bold.ttf"),
24+
});
25+
};
26+
27+
export default function App() {
28+
const [fontLoaded, setFontLoaded] = useState(false);
29+
30+
if (!fontLoaded) {
31+
return (
32+
<AppLoading
33+
startAsync={fetchFonts}
34+
onFinish={() => setFontLoaded(true)}
35+
onError={(err) => console.log(err)}
36+
/>
37+
);
38+
}
39+
return (
40+
<Provider store={store}>
41+
<MealsNavigator />
42+
</Provider>
43+
);
44+
}

meals-app/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Meals App
2+
3+
<p align="center">
4+
<img src="screen01.jpeg" width="25%" alt="tela da aplicação">
5+
<img src="screen02.jpeg" width="25%" alt="tela da aplicação">
6+
<img src="screen03.jpeg" width="25%" alt="tela da aplicação">
7+
<img src="screen04.jpeg" width="25%" alt="tela da aplicação">
8+
<img src="screen05.jpeg" width="75%" alt="tela da aplicação">
9+
<img src="screen06.jpeg" width="75%" alt="tela da aplicação">
10+
</p>
11+
12+
> Projeto mais robusto usando Expo, de um aplicativo com dados de exemplo para receitas, podendo filtrar as receitas baseadas em características e podendo favoritar a receita, foram utilizados react navigation, stack, drawer, bottom tab, redux, projeto feito por Maximilian Schwarzmüller.

meals-app/app.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"expo": {
3+
"name": "meals-app",
4+
"slug": "meals-app",
5+
"version": "1.0.0",
6+
"orientation": "portrait",
7+
"icon": "./assets/icon.png",
8+
"splash": {
9+
"image": "./assets/splash.png",
10+
"resizeMode": "contain",
11+
"backgroundColor": "#ffffff"
12+
},
13+
"updates": {
14+
"fallbackToCacheTimeout": 0
15+
},
16+
"assetBundlePatterns": [
17+
"**/*"
18+
],
19+
"ios": {
20+
"supportsTablet": true
21+
},
22+
"android": {
23+
"adaptiveIcon": {
24+
"foregroundImage": "./assets/adaptive-icon.png",
25+
"backgroundColor": "#FFFFFF"
26+
}
27+
},
28+
"web": {
29+
"favicon": "./assets/favicon.png"
30+
}
31+
}
32+
}

meals-app/assets/adaptive-icon.png

17.1 KB
Loading

meals-app/assets/favicon.png

1.43 KB
Loading
101 KB
Binary file not shown.
94.2 KB
Binary file not shown.

meals-app/assets/icon.png

21.9 KB
Loading

0 commit comments

Comments
 (0)