Skip to content

Commit

Permalink
Trazendo do repositorio pessoal
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasMBalieiro committed Dec 9, 2024
1 parent a81bd07 commit 4b9350a
Show file tree
Hide file tree
Showing 36 changed files with 18,101 additions and 0 deletions.
35 changes: 35 additions & 0 deletions mobile/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
node_modules/

# Expo
.expo/
dist/
web-build/

# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision

# Metro
.metro-health-check*

# debug
npm-debug.*
yarn-debug.*
yarn-error.*

# macOS
.DS_Store
*.pem

# local env files
.env*.local

# typescript
*.tsbuildinfo
13 changes: 13 additions & 0 deletions mobile/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "android",
"problemMatcher": [],
"label": "npm: android",
"detail": "expo start --android"
// bass source ~/.nvm/nvm.sh --no-use ';' nvm install --lts
}
]
}
87 changes: 87 additions & 0 deletions mobile/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from "@react-navigation/stack";
import { PixelRatio, StyleSheet, Image, View, Text } from "react-native";

import * as Routes from "./src/routes/Index";

const Stack = createStackNavigator();

export default function App() {
return (
<NavigationContainer>
<Stack.Navigator
initialRouteName="Login"
screenOptions={{
headerShown: true,
headerStyle: {
backgroundColor: "#ACB6B8",
},
headerTitleStyle: {
fontSize: PixelRatio.getFontScale() * 24,
fontWeight: "bold",
},
}}
>
<Stack.Screen
name="Login"
component={Routes.Login}
options={{ headerShown: false }}
/>
<Stack.Screen
name="IndexDrawer"
component={Routes.Routes}
options={{ headerShown: false }}
/>

<Stack.Screen
name="HistRelPrat"
component={Routes.HistRelPrat}
options={{
title: "Histórico de entregas",
}}
/>

<Stack.Screen
name="RelatorioEdit"
component={Routes.RelatorioEdit}
options={{
title: "Editar Relatório",
}}
/>

<Stack.Screen
name="EditPerfil"
component={Routes.PerfilEdit}
options={{
title: "Editar Perfil",
}}
/>

<Stack.Screen
name="CursoFeedback"
component={Routes.CursoFeedback}
options={{
title: "Editar Perfil",
}}
/>

<Stack.Screen
name="CursoHistorico"
component={Routes.CursoHistorico}
options={{
title: "Editar Perfil",
}}
/>
</Stack.Navigator>
</NavigationContainer>
);
}

const styles = StyleSheet.create({
title: {
fontSize: PixelRatio.getFontScale() * 24,
fontWeight: "bold",
justifyContent: "center",
},
});
27 changes: 27 additions & 0 deletions mobile/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"expo": {
"name": "mobile",
"slug": "mobile",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#ffffff"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
}
}
Binary file added mobile/assets/adaptive-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/assets/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mobile/assets/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions mobile/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['react-native-reanimated/plugin'],
};
};
Loading

0 comments on commit 4b9350a

Please sign in to comment.