Skip to content

Commit

Permalink
Merge pull request #5 from Abraao1231/#1-create-config-file-router
Browse files Browse the repository at this point in the history
#1 create config file router
  • Loading branch information
Abraao1231 authored May 18, 2024
2 parents 7251809 + f197a80 commit b1c375f
Show file tree
Hide file tree
Showing 25 changed files with 1,699 additions and 1,015 deletions.
5 changes: 5 additions & 0 deletions src/GymTracker/@types/app.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="nativewind/types" />
declare module '*.jpg';
declare module '*.png';


6 changes: 6 additions & 0 deletions src/GymTracker/@types/svg.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module "*.svg"{
import React from 'react';
import { SvgProps } from 'react-native-svg';
const content: React.FC<SvgProps>;
export default content;
}
30 changes: 11 additions & 19 deletions src/GymTracker/App.tsx
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { Image } from 'react-native';
import { StatusBar } from 'react-native';


import { Routes } from './routes';


export default function App() {

return (
<View style={styles.container}>
<Text style={styles.text}>GymTracker</Text>
</View>
<>
<Routes/>
<StatusBar barStyle='light-content' backgroundColor='transparent' translucent/>
</>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'black',
alignItems: 'center',
justifyContent: 'center',
},
text: {
color: 'purple',
fontSize: 20,
fontWeight: 'bold'
}
});
20 changes: 14 additions & 6 deletions src/GymTracker/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"slug": "GymTracker",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"icon": "./assets/images/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/iphone-splash-preview-dark.png",
"image": "./assets/images/iphone-splash-preview-dark.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
"backgroundColor": "#000000"
},
"assetBundlePatterns": [
"**/*"
Expand All @@ -19,12 +19,20 @@
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"foregroundImage": "./assets/images/adaptive-icon.png",
"backgroundColor": "#000000"
}
},
"web": {
"favicon": "./assets/favicon.png"
}
"favicon": "./assets/images/favicon.png"
},
"plugins": [
[
"expo-font",
{
"fonts": ["./assets/images/fonts/Viga-Regular.ttf"]
}
]
]
}
}
Binary file added src/GymTracker/assets/fonts/Viga-Regular.ttf
Binary file not shown.
File renamed without changes
File renamed without changes
Binary file added src/GymTracker/assets/images/bg-home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Binary file added src/GymTracker/assets/images/logoGymTracker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added src/GymTracker/assets/logoNova.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/GymTracker/babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ["nativewind/babel"]
};
};
23 changes: 23 additions & 0 deletions src/GymTracker/components/ButtonHome.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { TouchableOpacity } from "react-native";
import { Text } from "react-native";
import { useNavigation } from "@react-navigation/native";


interface PropsButtonHomeProps {
title: string
screen: string
}

export function ButtonHome(Props: PropsButtonHomeProps){
const { navigate } = useNavigation();

return (
<TouchableOpacity
className="border-violet-700 border-2 h-14 w-[90%] rounded-xl bg-zinc-950 flex items-center justify-center"
onPress={()=>{navigate(Props.screen)}}
>

<Text className="text-violet-700">{Props.title}</Text>
</TouchableOpacity>
)
}
Loading

0 comments on commit b1c375f

Please sign in to comment.