Skip to content

Commit

Permalink
Merge pull request #18842 from allroundexperts/fix-18793
Browse files Browse the repository at this point in the history
fix: android app crash fix due to wrong position of LayoutAnimation
(cherry picked from commit 101a3e2)
  • Loading branch information
puneetlath authored and OSBotify committed May 12, 2023
1 parent adfcaf8 commit b5b35fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/home/report/ReportActionCompose.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit b5b35fd

Please sign in to comment.