tunoltd / emoji-mart-native

One component to pick them all 👊🏼
https://tunoltd.github.io/emoji-mart-native
BSD 3-Clause "New" or "Revised" License
86 stars 31 forks source link

Is there a way to get the full width of the screen with a picker? #198

Closed drexelfitzrosh closed 2 years ago

drexelfitzrosh commented 4 years ago

I have use the style to change the size on the picker I use width and height. The height is working properly but the width seems it not reflecting any changes.

pederjohnsen commented 4 years ago

Duplicate: https://github.com/tunoltd/emoji-mart-native/issues/139

@drexelfitzrosh there's no way to do it atm, I've been meaning to investigate a solution for this but haven't gotten around to it yet.

What is your use case for making it wider?

drexelfitzrosh commented 4 years ago

This will be used in chats like messenger or slack.. is there any workaround?

pederjohnsen commented 4 years ago

To make it more like a keyboard integrated picker?

There's no workaround atm no, the width is unfortunately hard coded. You could use just the <Emoji/> component and data etc and build your own (I know some people have done this)

drexelfitzrosh commented 4 years ago

thanks

medonagy45 commented 1 year ago

you can do that by adding perLine emoji to that perLine={Math.floor(Width / 42)}