Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions assets/icons/check.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/icons/helpcontacts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions assets/icons/question.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions assets/icons/trophygold.svg
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 assets/sintome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 16 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@
"react-native-reanimated": "^3.16.6",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "^4.4.0",
"react-native-svg": "^15.10.1",
"react-native-svg": "15.8.0",
"react-native-svg-transformer": "^1.5.0",
"react-native-vector-icons": "^10.2.0",
"react-native-web": "~0.19.13"
"react-native-web": "~0.19.13",
"expo-linear-gradient": "~14.0.1"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
58 changes: 33 additions & 25 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { Text, View } from "react-native";
import { Text, View, StatusBar } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
Expand Down Expand Up @@ -30,7 +30,7 @@ export default function App() {

if (!fontsLoaded) {
return (
<View className="flex-1 justify-center items-center bg-gray-100">
<View className="flex-1 justify-center items-center bg-off'white">
<Text>Carregando fontes...</Text>
</View>
);
Expand All @@ -46,9 +46,14 @@ export default function App() {
screenOptions={({ route }) => ({
headerShown: false,
tabBarShowLabel: false,
tabBarStyle: {
paddingTop: 5, // Espaçamento superior dentro da barra
paddingBottom: 5, // Espaçamento inferior dentro da barra
backgroundColor: "#fff", // Cor de fundo da barra
},
tabBarIcon: ({ focused, size }) => {
let IconComponent;
let color = focused ? "#fcc766" : "#d0d0d0"; // Define as cores: ativo e inativo
let color = focused ? "#fcc766" : "#d0d0d0";

switch (route.name) {
case "Home":
Expand All @@ -70,7 +75,7 @@ export default function App() {
IconComponent = null;
}

return <IconComponent width={size} height={size} fill={color} />;
return <IconComponent width={size * 1.2} height={size * 1.2} fill={color} />;
},
tabBarActiveTintColor: "#fcc766",
tabBarInactiveTintColor: "#d0d0d0",
Expand All @@ -87,26 +92,29 @@ export default function App() {

// Stack Navigator (para gerenciar Welcome e HomeTabs)
return (
<NavigationContainer>
<Stack.Navigator>
{/* Tela de boas-vindas sem navbar */}
<Stack.Screen
name="Welcome"
component={WelcomePage}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Login"
component={LoginPage}
options={{ headerShown: false }}
/>
{/* Tela HomeTabs com navbar */}
<Stack.Screen
name="HomeTabs"
component={HomeTabs}
options={{ headerShown: false }}
/>
</Stack.Navigator>
</NavigationContainer>
<>
<StatusBar barStyle="dark-content" />
<NavigationContainer>
<Stack.Navigator>
{/* Tela de boas-vindas sem navbar */}
<Stack.Screen
name="Welcome"
component={WelcomePage}
options={{ headerShown: false }}
/>
<Stack.Screen
name="Login"
component={LoginPage}
options={{ headerShown: false }}
/>
{/* Tela HomeTabs com navbar */}
<Stack.Screen
name="HomeTabs"
component={HomeTabs}
options={{ headerShown: false }}
/>
</Stack.Navigator>
</NavigationContainer>
</>
);
}
17 changes: 17 additions & 0 deletions src/components/Task.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";
import { Text, View } from "react-native";
import CheckIcon from "../../assets/icons/check.svg";

const Task = ({ taskText, isCompleted }) => (
<View className="flex-row items-center justify-between bg-white rounded-lg px-4 mb-2 border border-light-gray">
<Text className="text-lg text-gray-600 flex-1 py-3">{taskText}</Text>
<View className="h-full w-[1px] bg-light-gray mr-4" />
<CheckIcon
width={24}
height={24}
style={{ opacity: isCompleted ? 1 : 0 }}
/>
</View>
);

export default Task;
Loading