import { Badge } from '@/components/ui/badge'; import { Text } from '@/components/ui/text'; import { View } from '@/components/ui/view'; import React, { useState } from 'react'; import { TouchableOpacity } from 'react-native'; export function BadgeInteractive() { const [tags, setTags] = useState(['React', 'TypeScript', 'Expo', 'Mobile']); const [selectedCategory, setSelectedCategory] = useState('All'); const categories = ['All', 'Work', 'Personal', 'Important']; const removeTag = (tagToRemove: string) => { setTags(tags.filter((tag) => tag !== tagToRemove)); }; return ( {/* Dismissible tags */} Tags (tap to remove): {tags.map((tag) => ( removeTag(tag)}> {tag} × ))} {/* Selectable categories */} Categories: {categories.map((category) => ( setSelectedCategory(category)} > {category} ))} {/* Toggle badges */} Filter Options: Active Completed Archived ); }