import React from 'react'; import { Text, TouchableOpacity, View } from 'react-native'; import styles from './styles'; import { useTheme } from '../../theme'; import { ITabBarProps } from './interfaces'; const TabBar = React.memo(({ activeTab, tabs, goToPage, tabEmojiStyle }: ITabBarProps) => { const { colors } = useTheme(); return ( {tabs?.map((tab, i) => ( goToPage?.(i)} style={styles.tab} testID={`reaction-picker-${tab}`}> {tab} ))} ); }); export default TabBar;