From b5b35fd35dfec95227d28cfefa708a5aa25f1b19 Mon Sep 17 00:00:00 2001 From: Puneet Lath Date: Fri, 12 May 2023 12:30:01 -0400 Subject: [PATCH] Merge pull request #18842 from allroundexperts/fix-18793 fix: android app crash fix due to wrong position of LayoutAnimation (cherry picked from commit 101a3e2e990c395879f578e520a9f60b6e95f5d4) --- src/pages/home/report/ReportActionCompose.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/home/report/ReportActionCompose.js b/src/pages/home/report/ReportActionCompose.js index d257e9a3de53..617fa7d60a35 100644 --- a/src/pages/home/report/ReportActionCompose.js +++ b/src/pages/home/report/ReportActionCompose.js @@ -301,6 +301,7 @@ class ReportActionCompose extends React.Component { } onSelectionChange(e) { + LayoutAnimation.configureNext(LayoutAnimation.create(50, LayoutAnimation.Types.easeInEaseOut, LayoutAnimation.Properties.opacity)); this.setState({selection: e.nativeEvent.selection}); this.calculateEmojiSuggestion(); this.calculateMentionSuggestion(); @@ -511,8 +512,6 @@ class ReportActionCompose extends React.Component { nextState.shouldShowEmojiSuggestionMenu = !_.isEmpty(newSuggestedEmojis); } - LayoutAnimation.configureNext(LayoutAnimation.create(50, LayoutAnimation.Types.easeInEaseOut, LayoutAnimation.Properties.opacity)); - this.setState(nextState); }