-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
#1 create config file router
- Loading branch information
Showing
25 changed files
with
1,699 additions
and
1,015 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="nativewind/types" /> | ||
declare module '*.jpg'; | ||
declare module '*.png'; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
File renamed without changes
File renamed without changes
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
File renamed without changes
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
) | ||
} |
Oops, something went wrong.