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) => ( { if (goToPage) { goToPage(i); } }} style={styles.tab} testID={`reaction-picker-${tab}`}> {tab} {activeTab === i ? ( ) : ( )} ))} ); }); export default TabBar;