rn-emoji-keyboard: Exception thrown while executing UI Block: Collection was being mutated while being enumerated
Describe the bug After following the docs, installing rn-emoji-keyboard and adding it to my project, when selecting an emoji from the keyboard I get this error (screenshot below). This sometimes does not happen the first time I select an emoji but it always happens in the first 3 selections.
To Reproduce Steps to reproduce the behavior: ` import EmojiPicker from “rn-emoji-keyboard”;
export default function MyEmojiPicker({isOpen, onClose, onSelect}) { <EmojiPicker onEmojiSelected={(e) => onSelect(e.emoji)} open={isOpen} onClose={onClose} /> }
`
Expected behavior The keyboard is supposed to not crash the entire app when an emoji is selected
Screenshots

Devices this happens on (that I personally tested)
- Simulator iPhone 14 pro - iOS 16.2
- Simulator Resizable API 32 - Android 12L
- Simulator Pixel 6 Pro API Tiramisu - Android 13
- Real device iPhone14 pro - iOS 16.2
- Real device iPhone 11 pro - iOS 16.1
- Real device Huawei Y9 - Android 12
Stack & Versions “expo”: “^47.0.0”, “react”: “18.1.0”, “react-native”: “0.70.5”, “rn-emoji-keyboard”: “^1.1.0”
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (11 by maintainers)
Maybe you can create a snack with minimal code needed to reproduce it? For example using this tool - https://snack.expo.dev/ Then we will know if it’s something with your project only, or no 😃