From fe9fc8e3e465f096557b46a0bc5059ec8fff9419 Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Fri, 28 Feb 2025 00:35:22 -0500 Subject: [PATCH] Display selected tag name in the Tags screen header --- Views/Tags.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Views/Tags.js b/Views/Tags.js index cd4cf17..8c4ef74 100644 --- a/Views/Tags.js +++ b/Views/Tags.js @@ -1,12 +1,8 @@ import { StatusBar } from 'expo-status-bar'; import React, { useState, useEffect } from 'react'; -import { View, ActivityIndicator, StyleSheet, SafeAreaView, FlatList } from 'react-native'; -import { Button, IconButton } from 'react-native-paper'; +import { View, Text, StyleSheet, SafeAreaView, FlatList } from 'react-native'; import API from './../API.js'; import Post from './../components/Post.js'; -import NewPost from "./../components/NewPost.js"; -import ProfileHeader from '../components/ProfileHeader.js'; -import AsyncStorage from '@react-native-async-storage/async-storage'; let Tags = ({ navigation, route }) => { let [Posts, setPosts] = useState([]); @@ -38,7 +34,9 @@ let Tags = ({ navigation, route }) => { const header = ( - + + #{route.params.tag} + )