From 9bccc8839ba0804a749f246fae9fef16b664fdd4 Mon Sep 17 00:00:00 2001 From: Meyanis95 Date: Fri, 19 Apr 2024 22:48:39 +0200 Subject: [PATCH] feat: fixed footer --- example/src/Components/Footer.tsx | 37 ++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/example/src/Components/Footer.tsx b/example/src/Components/Footer.tsx index 0467494..53e8ff1 100644 --- a/example/src/Components/Footer.tsx +++ b/example/src/Components/Footer.tsx @@ -2,12 +2,15 @@ import React, { type FunctionComponent } from 'react'; import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import { icons } from './illustrations'; import { SvgXml } from 'react-native-svg'; +import { useRoute } from '@react-navigation/native'; type FooterProps = { navigation: any; }; export const Footer: FunctionComponent = ({ navigation }) => { + const route = useRoute(); + return ( = ({ navigation }) => { onPress={() => navigation.navigate('Home')} > - - Home + + + Home + navigation.navigate('About')} > - - Resources + + + Resources + ); @@ -48,7 +75,7 @@ const styles = StyleSheet.create({ footerText: { fontFamily: 'Outfit-Regular', fontSize: 14, - color: 'white', marginTop: 4, + color: '#71696A', }, });