import { Text, StyleSheet, TouchableOpacity } from 'react-native'; import type { Emoji } from '../types'; import { charFromEmojiObject } from '../utils'; interface IEmojiCellProps { emoji: Emoji; onPress: (emoji: Emoji) => void; colSize: number; } export default function EmojiCell({ emoji, onPress, colSize, }: IEmojiCellProps) { return ( onPress(emoji)} > {charFromEmojiObject(emoji)} ); } const styles = StyleSheet.create({ wrapper: { borderRadius: 10, justifyContent: 'center', alignItems: 'center', }, });