import React from 'react'; import { View, Text, TouchableOpacity, StyleSheet } from 'react-native'; import { FontAwesome } from '@expo/vector-icons'; type TabType = 'search' | 'favorites' | 'settings'; interface BottomTabBarProps { activeTab: TabType; onTabChange: (tab: TabType) => void; } export default function BottomTabBar({ activeTab, onTabChange }: BottomTabBarProps) { return ( onTabChange('search')} style={styles.tabItem}> 노래검색 onTabChange('favorites')} style={styles.tabItem}> 즐겨찾기 onTabChange('settings')} style={styles.tabItem}> 마이페이지 ); } const styles = StyleSheet.create({ tabBar: { flexDirection: 'row', justifyContent: 'space-around', paddingVertical: 12, paddingBottom: 0, backgroundColor: '#fff', borderTopWidth: 0, }, tabItem: { alignItems: 'center', }, activeText: { fontSize: 12, color: '#007AFF', marginTop: 4, }, inactiveText: { fontSize: 12, color: '#666', marginTop: 4, }, });