Giter Club home page Giter Club logo

react-emojione's People

Contributors

atabel avatar pladaria avatar zalmoxisus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-emojione's Issues

Publish npm module in ES5

You should not expect the consumer of the module will use ES2015. And even using it, they will probably not use the same babel/webpack config.

A common practice for npm modules written in ES2015 or other language is to create a prepublish npm script which compiles the source code to ES5 and add a .npmignore file to ignore every file in your project but the build.

Support `:+1:`

We very often use :+1: and :-1: on GitHub, but those won't get emojified by react-emojione. Currently, only :thumbsup: and :thumbsdown: translate to πŸ‘ and πŸ‘Ž . Any chance to get support for :+1:? πŸ˜ƒ

Concerns about size

I might be wrong but is it possible to only cherry pick the emoji I want to use and leave out the rest? This due to the fact that a size of 2,5 MB is quite a lot of bandwidth for mobile users etc.

Emoji unicodes not displaying properly

Hello!

I'm using react-emojione in my app and there is an issue where the emoji images show up correctly but when I grab the innerHTML of each generated by the component, I get something like Γ°ΕΈΛœβ€ž or Γ°ΕΈΛœβ€  or ΒΌ. I believe that the unicode values are somewhat screwed up. The weirdest thing is that I do not have this issue in my dev environment, only in production (on AWS EC2).

Something that might be noteworthy: The users of the app do use Spanish characters.

Any idea what could be the problem?

Please find attached a screenshot of the bug in production and the React file where the issue occurs.

Thanks!

screen shot 2018-04-25 at 4 33 31 pm
MessageReply.txt

How can I create my sprite?

The sprite file is too big. My project does not need such a large selection. How can I create my sprite using 10-20 emoticons?

Thx.

What is the correct version of emojione?

What is the correct version of emojione?
I want to download emoji image into my machine. But I don't how?
Because when I use the image from my machine it displays not correct.

[object Object]

When using the emojify function every emoji gets turned into [object Object]

React 16

Why textIndent: -9999em?

I'm seeing that by default the emoji has a textIndent of -9999em. This causes the emoji to be shifted to the left until it's off the page and can't be seen. When I set this property to 0, the emoji appears in the normal place. Is there a reason for this?

Error in basic usage, Not found error

Basic setup, emojis dont appear and net::ERR_FILE_NOT_FOUND for path MyProject/emojione.sprites.png is printed to the console. emojione.sprites.png is a file located in the package, so I assume this is incorrect.

I can however get it working passing in {output: 'unicode'}. What might the issue be?

Support for raw html output?

First, thank you for the nice lib!

Second, I'd like to use the lib with contenteditable block.
Contenteditable is a little bit tricky in React and, in short, it requires dangerouslySetInnerHTML to work.

So is it possible to add support for raw html output?

Not working on IE 11

I noticed that this package is making use of the Map class from ES2015 which isn't supported (fully?) before IE edge. The code specifically breaks down when trying to call the entries() function on the asciiRegExpToUnicode object.

Not sure if it's in your scope to fix it, but thought I'd mention it because it caused me quite a bit of hassle.

Cheers,

Jason

Emoji text is displayed with "text-align: right"

I have something like this:

<div className="text-with-emojis">
    <Emojify>{text}</Emojify>
</div>

where text-with-emojis class has the text-align: right css rule.
Then the displayed emojis look like this:
captura de pantalla de 2017-06-20 11-40-02

If I remove the text-align: right the emojis are displayed right:
captura de pantalla de 2017-06-20 11-42-25

I've been playing with css rules but can't find the solition. Any ideas?

Internet Explorer crashes when using

Hello there,
I find your tool extremely useful and have built it into my React application. However, I now have the problem that all browsers (Firefox 62, Firefox Developer 63, Opera 55, Chrome 69 tested) support react-emojione, but the Internet Explorer, the little piece of shit that throws a stacktrace. Which looks like this:

source code looks so:

...
import Emojify from 'react-emojione';
...
<Emojify style={{height: 20, width: 20}}>

<LanguageButton onClick={() => this.props.changeLanguageFunc("de")}>:flag_de:</LanguageButton>

<LanguageButton onClick={() => this.props.changeLanguageFunc("en")}>:flag_gb:</LanguageButton>

</Emojify>
...

Use EmojiOne 3

Nice lib!
Any plans updating to EmojiOne 3?
An option to use the older version would be a good idea, a custom prop on Emojify would make it possible to choose version 2 or 3.

Need to be able to not put any styling at all

The default css styling for emojis are a large array of rules that might not be required at all. I for one don't need any styling. Just the emoji.

I should be able to opt out of having my emoji specially styled by the default rules.

I could help with this if it's accepted as a useful enhancement.

Emojione 4.0?

The new EmojiOne 4.0 images are released! Will there be a new version of react-emojione that uses these new images?

Emoji Size

Currently, I can render emoji's from the message text using the following code:

<p>{emojify(message.text, {output: 'unicode'})}</p>

Here, I simply pass the entire message into the emojify() function, and it renders emojis where found. What I would like to do is increase the size of the emojis in the message, without increasing the font size of the rest of the message.

How can this be done?

slowly

Very high, emoji can be displayed, but the emoji is slow, I have an emoji list (about 50), and it took eight seconds to refresh.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.