Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would this work on react web #32

Open
brianpooe opened this issue May 19, 2019 · 2 comments
Open

Would this work on react web #32

brianpooe opened this issue May 19, 2019 · 2 comments

Comments

@brianpooe
Copy link

I can not seem to find this package for the web. I specifically need this functionality bellow:

const emoji = emoticons.parse('This is source emoji [GRIMACING FACE]');
console.log(emoji);

@xiewang
Copy link
Owner

xiewang commented May 20, 2019

try this module, npm install emoticons-parse.

@brianpooe
Copy link
Author

Thanks Xiewang for the response but the package does not work on my side.

import * as emoticons from 'emoticons-parse';

const emoji = emoticons.parse('This is source emoji [GRIMACING FACE]');
console.log(emoji);

// Response

Error that there is not default export. So i did some changes to the file and managed to bypass the errors but the code still returns the same string in the console without the emoji.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants