TheWidlarzGroup / rn-emoji-keyboard

Super performant, lightweight, fully customizable emoji picker 🚀
https://thewidlarzgroup.github.io/rn-emoji-keyboard/
MIT License
326 stars 59 forks source link

When changing between tabs, wrong tab is displayed #127

Open liellevibob opened 1 year ago

liellevibob commented 1 year ago

Describe the bug In Android when between between tabs, wrong tab is displayed + sometimes animation of moving is not smooth sometimes

To Reproduce Steps to reproduce the behavior:

  1. Open emoji picker component
  2. Click on some 'No Enter' icon tab -> 'People' icon tab -> 'Light' icon tab -> 'Ice cream' icon tab
  3. See error: 'Flight' icon tab is displayed

Expected behavior 'Ice cream' icon tab should displayed. this bug can happen in different scenarios.

Attached screen recording with the described bug

https://user-images.githubusercontent.com/104358608/229707614-404e6241-4867-46dd-a8c2-12ace8227ae4.mp4

mateki0 commented 1 year ago

Hey, @liellevibob thanks for reporting the bug. Can you show me your EmojiKeyboard code? I can't reproduce it on my phone, and I don't know if it's because it's not a OnePlus or maybe I'm trying on wrong type of EmojiKeyboard

liellevibob commented 1 year ago

@mateki0 Sure! here is the code: <EmojiPicker open = { true } enableRecentlyUsed = { true } enableSearchBar = { true } onEmojiSelected = { () => {} } onClose = { () => {} } allowMultipleSelections = { true } enableSearchAnimation = { false } enableCategoryChangeGesture = { true } selectedEmojis = { selectedEmojis } // type of selectedEmojis : string[] theme = { { emoji: { selected: '#FFDBC1' }} } />

thank you in advanced!

mateki0 commented 1 year ago

Sorry for a delay, but I have checked it once again with your code. On both Samsung and Xiaomi it works fine, and I don't have more devices to try it :/ Can you try to debug and fix it yourself?

I've opened a PR with a small improvement, but to be honest I don't think that it will fix your problem.

jakex7 commented 1 year ago

Hi @liellevibob, could you please check the latest version? (1.3.0)

Okelm commented 1 year ago

@liellevibob is it still an issue?