UNPKG

fastcomments-react-native-sdk

Version:

React Native FastComments Components. Add live commenting to any React Native application.

6 lines (5 loc) 478 B
import { jsx as _jsx } from "react/jsx-runtime"; import { TouchableOpacity, View } from "react-native"; export function EmoticonBar({ config, styles }) { return _jsx(View, { style: styles?.root, children: config.emoticons && config.emoticons.map((emoticonSrcAndButton) => _jsx(TouchableOpacity, { onPress: () => config.addEmoticon(config.getCurrentNode(), emoticonSrcAndButton[0]), style: styles?.button, children: emoticonSrcAndButton[1] }, emoticonSrcAndButton[0])) }); }