- Notifications
You must be signed in to change notification settings - Fork 43
Closed
Description
Hi, i just found this problem. it's REALLY HARD TO KNOW.
you can see the video here, as I just add a reaction to view:
Screen.Recording.2022-06-17.at.16.39.49.mov
Here is the main layout for view:
<ContextMenuView> <Bubble/> <ReactionView/> </ContextMenuView> Inside onPressMenuItem, i just update message:
const message = props.currentMessage const reactions = message.reactions reactions.push({ 'id': '1', 'type': 200, 'date': new Date().getTime(), 'by': currentUser.id }) message.reactions = reactions handleChoosenMessageReaction(message) const handleChoosenMessageReaction = React.useCallback((message) => { const newMessages = [...messages] const index = newMessages.findIndex(mes => mes._id === message._id) console.log('index', index) if(index > -1){ newMessages[index].reactions = [...message.reactions] console.log('handleChoosenMessageReaction', message.reactions) setMessage(newMessages) } }) I tried to use https://github.com/mpiannucci/react-native-context-menu-view but it's does not make problem, But I want to use your lib because it's better
Please helppp
Metadata
Metadata
Assignees
Labels
No labels