【问题标题】:emoji mart showing hashtag emojis onlyemoji mart showing hashtag emojis only
【发布时间】:2022-12-26 16:52:07
【问题描述】:

The emoji mart picker is only showing hashtags when I change set to anything but native, im currently using it in react typescript.

<div className="picker">
  <AppComponent.EmojiPicker
    set="twitter"
    emojiButtonColors={["#364157"]}
    emojiButtonRadius="8px"
    skinTonePosition="search"         
  />
</div>

Here is the image of whats happening

import React, { useEffect, useRef } from "react";

import data from "@emoji-mart/data";
import { Picker, PickerProps } from "emoji-mart";

const EmojiPicker = (props: PickerProps | Readonly<PickerProps> | any) => {
    const ref = useRef() as React.MutableRefObject<HTMLInputElement>;

    useEffect(() => {
        new Picker({ ...props, data, ref });
    }, [props]);

    return <div ref={ref} />;
};

export default EmojiPicker;

Also I am unsure how to use the emoji component to display a single emoji, it would be much appreciated if you can help me with that too thanks a bunch!

【问题讨论】:

    标签: reactjs emoji react-typescript


    【解决方案1】:

    @DSTitan have you found any reason for this?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2022-09-23
      • 1970-01-01
      • 1970-01-01
      • 2023-01-24
      • 1970-01-01
      • 2019-02-08
      • 2022-11-08
      相关资源
      最近更新 更多